# Created by 'perl Makefile.PL'

PACKAGE=synopsys-modes

all:
	@echo "No make needed, just 'make install'";

install: sim-log synopsys-timing synopsys-mode einstimer-mode apollo-mode

sim-log: 
	emacs -batch -load sim-log.el -f sim-log-install

synopsys-timing: 
	emacs -batch -load synopsys-timing.el -f synopsys-timing-install

synopsys-mode: 
	emacs -batch -load synopsys-mode.el -f synopsys-mode-install

einstimer-mode: 
	emacs -batch -load einstimer-mode.el -f einstimer-mode-install

apollo-mode: 
	emacs -batch -load apollo-mode.el -f apollo-mode-install

maintainer-clean:
	-rm installer.el sim-log.el synopsys-timing.el synopsys-mode.el einstimer-mode.el apollo-mode.el 

maintainer-copy:
	cp -f $(SL)/installer.el .
	cp -f $(SL)/sim-log.el .
	cp -f $(SL)/synopsys-timing.el .
	cp -f $(SL)/synopsys-mode.el .
	cp -f $(SL)/einstimer-mode.el .
	cp -f $(SL)/apollo-mode.el .

DISTFILES = Makefile Makefile.PL *.el

Makefile: Makefile.PL
	perl Makefile.PL

dist: $(DISTFILES) maintainer-copy
	distname='synopsys-modes-1.2'; \
	rm -fr $$distname; \
	mkdir $$distname; \
	for file in $(DISTFILES); do \
	  ln $$file $$distname/$$file \
	  || { echo copying $$file instead; cp -p $$file $$distname/$$file;}; \
	done; \
	chmod -R a+r $$distname; \
	tar chf $$distname.tar $$distname; \
	gzip --force --best $$distname.tar; \
	rm -fr $$distname
# Created by 'perl Makefile.PL'
