# Automatically Generated Makefile by EDE.
# For use with: make
#
# DO NOT MODIFY THIS FILE OR YOUR CHANGES MAY BE LOST.
# EDE is the Emacs Development Environment.
# http://www.ultranet.com/~zappo/ede.shtml
# 

ede_FILES=Project.ede Makefile

semantic_LISP=semantic-bnf.el semantic.el semantic-util.el
EMACS=emacs
tools_LISP=document.el document-vars.el sformat.el semantic-make.el semantic-c.el semantic-imenu.el semantic-el.el semantic-sb.el working.el semantic-mode.el
misc_AUX=INSTALL
info_TEXINFOS=semantic.texi
MAKEINFO=makeinfo
aux_AUX=c.bnf make.bnf
VERSION=1.3.3
DISTDIR=semantic-$(VERSION)



all: semantic tools semantic.info

semantic: $(semantic_LISP)
	@echo "(add-to-list 'load-path nil)" > $@-compile-script
	@for loadpath in "${LOADPATH}"; do \
	   echo "(add-to-list 'load-path \"$$loadpath\")" >> $@-compile-script; \
	 done
	@echo "(setq debug-on-error t)" >> $@-compile-script
	$(EMACS) -batch -l $@-compile-script -f batch-byte-compile $^

tools: $(tools_LISP)
	@echo "(add-to-list 'load-path nil)" > $@-compile-script
	@for loadpath in "${LOADPATH}"; do \
	   echo "(add-to-list 'load-path \"$$loadpath\")" >> $@-compile-script; \
	 done
	@echo "(setq debug-on-error t)" >> $@-compile-script
	$(EMACS) -batch -l $@-compile-script -f batch-byte-compile $^

semantic.info: $(info_TEXINFOS)
	makeinfo -o $@ $<

tags: $(semantic_LISP) $(tools_LISP) $(info_TEXINFOS) 
	etags $^


clean:
	rm -f *.elc *.info


dist:
	rm -rf $(DISTDIR)
	mkdir $(DISTDIR)
	cp $(semantic_LISP) $(tools_LISP) $(misc_AUX) $(info_TEXINFOS) $(aux_AUX) $(ede_FILES) $(DISTDIR)
	tar -cvzf $(DISTDIR).tar.gz $(DISTDIR)
	rm -rf $(DISTDIR)

Makefile: Project.ede
	@echo Makefile is out of date!  It needs to be regenerated by EDE.
	@false



# End of Makefile
