# Automatically Generated Makefile by EDE.
# For use with: make
# Relative File Name: cedet/cogre/Makefile
#
# DO NOT MODIFY THIS FILE OR YOUR CHANGES MAY BE LOST.
# EDE is the Emacs Development Environment.
# http://cedet.sourceforge.net/ede.shtml
#
LOADPATH= ../ ../ ../../../ 
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

LOADDEFS=loaddefs.el
LOADDIRS=.
wy_SEMANTIC_GRAMMAR=wisent-dot.wy
wy_SEMANTIC_GRAMMAR_EL=wisent-dot-wy.el
dot_LISP=wisent-dot.el dot-mode.el
Mode_LISP=mode.el
hacks_LISP=picture-hack.el
cogre_LISP=uml.el periodic.el ascii.el srecode.el convert.el layout.el semantic.el
VERSION=1.1beta
DISTDIR=$(top)cedet-topdir-$(VERSION)/cedet/cogre



all: wy dot Mode hacks cogre

.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))


%-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: dot
dot: $(addsuffix c, $(dot_LISP))
dot: PRELOADS=cedet-compat

.PHONY: Mode
Mode: $(addsuffix c, $(Mode_LISP))
Mode: PRELOADS=cedet-compat

.PHONY: hacks
hacks: $(addsuffix c, $(hacks_LISP))
hacks: PRELOADS=cedet-compat

.PHONY: cogre
cogre: $(addsuffix c, $(cogre_LISP))
cogre: PRELOADS=cedet-compat

tags: 


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

.PHONY: dist

dist: autoloads $(wy_SEMANTIC_GRAMMAR_EL)
	mkdir $(DISTDIR)
	cp loaddefs.el $(wy_SEMANTIC_GRAMMAR) $(wy_SEMANTIC_GRAMMAR_EL) $(dot_LISP) $(Mode_LISP) $(hacks_LISP) $(cogre_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
