# 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://cedet.sourceforge.net/ede.shtml
#
setup_LISP=cedet-contrib.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 ../lisp/cedet --eval '(progn (require (quote cedet-compat)) (require (quote mode-local)))'

top=
ede_FILES=Project.ede Makefile

misc_AUX=ChangeLog
LOADDEFS=contrib-loaddefs.el
LOADDIRS=.
init_LISP=cedet-contrib-load.el
LOADPATH= ../lisp/cedet/ ../lisp/eieio/ ../ ./
wy_SEMANTIC_GRAMMAR=wisent-csharp.wy wisent-ruby.wy wisent-php.wy
wy_SEMANTIC_GRAMMAR_EL=wisent-csharp-wy.el wisent-ruby-wy.el wisent-php-wy.el
lisp_LISP=wisent-csharp.el semantic-tag-folding.el eassist.el wisent-ruby.el wisent-php.el ede-gnustep.el semantic-ectag-scala.el
VERSION=1.1
DISTDIR=$(top)Contrib-$(VERSION)



all: autoloads init setup wy lisp

.PHONY: clean-autoloads
clean-autoloads: 
	rm -f $(LOADDEFS)

.PHONY: autoloads
autoloads: 
	$(EMACS) $(EMACSFLAGS) $(AUTOGENFLAGS) $(addprefix -L ,$(LOADPATH)) --eval '(progn $(call require, $(PRELOADS)) (setq generated-autoload-file "$(abspath $(LOADDEFS))"))' -f batch-update-autoloads $(abspath $(LOADDIRS))


%.elc: %.el
	$(EMACS) $(EMACSFLAGS) $(addprefix -L ,$(LOADPATH)) --eval '(progn $(call require, $(PRELOADS)))' -f batch-byte-compile $^

.PHONY: init
init: $(addsuffix c, $(init_LISP))

.PHONY: setup
setup: $(addsuffix c, $(setup_LISP))

%-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-devel-load cedet-compat 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)'
.PHONY: lisp
lisp: $(addsuffix c, $(lisp_LISP))

tags: 


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

.PHONY: dist

dist: autoloads $(wy_SEMANTIC_GRAMMAR_EL)
	mkdir $(DISTDIR)
	cp $(misc_AUX) contrib-loaddefs.el $(init_LISP) $(setup_LISP) $(wy_SEMANTIC_GRAMMAR) $(wy_SEMANTIC_GRAMMAR_EL) $(lisp_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
