# Automatically Generated Makefile by EDE.
# For use with: make
# Relative File Name: cedet/semantic/wisent/Makefile
#
# DO NOT MODIFY THIS FILE OR YOUR CHANGES MAY BE LOST.
# EDE is the Emacs Development Environment.
# http://cedet.sourceforge.net/ede.shtml
#
wisent_LISP=wisent.el comp.el expr.el grammar.el debug.el grammar-macros.el
require=$(foreach r,$(1),(require (quote $(r))))
EMACSFLAGS=-batch --no-site-file --eval '(setq debug-on-error t)' -l "../../../../cedet-remove-builtin.el"
EMACS=@echo "    > $@";emacs
AUTOGENFLAGS=-L ../../ --eval '(progn (require (quote cedet-compat)) (require (quote mode-local)))'

top=../../../
ede_FILES=Project.ede Makefile

wy_SEMANTIC_GRAMMAR=java-tags.wy calc.wy java.wy python.wy javascript.wy
LOADPATH= ../../ ../../ ../../../../ 
wy_SEMANTIC_GRAMMAR_EL=java-tags-wy.el calc-wy.el java-wy.el python-wy.el javascript-wy.el
tools_LISP=bison-wisent.el
languages_LISP=calc.el java.el java-tags.el python.el javascript.el
VERSION=1.1beta
DISTDIR=$(top)cedet-topdir-$(VERSION)/cedet/semantic/wisent



all: wy tools wisent languages

%-wy.el: %.wy
	$(EMACS) $(EMACSFLAGS) $(addprefix -L ,$(LOADPATH)) --eval '(progn $(call require,$(PRELOADS)))' -f semantic-grammar-batch-build-packages $^

.PHONY: wy
wy: $(addsuffix -wy.elc, $(basename $(wy_SEMANTIC_GRAMMAR)))
wy: PRELOADS=cedet-compat cedet-devel-load semantic/grammar semantic/bovine/grammar semantic/wisent/grammar

wy: EMACSFLAGS+= --eval '(setq max-specpdl-size 1500 max-lisp-eval-depth 700 cedet-minimum-setup t)'
%.elc: %.el
	$(EMACS) $(EMACSFLAGS) $(addprefix -L ,$(LOADPATH)) --eval '(progn $(call require, $(PRELOADS)))' -f batch-byte-compile $^

.PHONY: tools
tools: $(addsuffix c, $(tools_LISP))

.PHONY: wisent
wisent: $(addsuffix c, $(wisent_LISP))
wisent: PRELOADS=cedet-compat

.PHONY: languages
languages: $(addsuffix c, $(languages_LISP))
languages: PRELOADS=cedet-compat

tags: 


clean:
	rm -f *-by.el *-wy.el *.elc

.PHONY: dist

dist: $(wy_SEMANTIC_GRAMMAR_EL)
	mkdir $(DISTDIR)
	cp $(wy_SEMANTIC_GRAMMAR) $(wy_SEMANTIC_GRAMMAR_EL) $(tools_LISP) $(wisent_LISP) $(languages_LISP) $(ede_FILES) $(DISTDIR)

Makefile: Project.ede
	@echo Makefile is out of date!  It needs to be regenerated by EDE.
	@echo If you have not modified Project.ede, you can use 'touch' to update the Makefile time stamp.
	@false



# End of Makefile
