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

by_SEMANTIC_GRAMMAR=c.by make.by scm.by erlang.by f90.by
LOADPATH= ../../ ../../ ../../../../ 
by_SEMANTIC_GRAMMAR_EL=c-by.el make-by.el scm-by.el erlang-by.el f90-by.el
bovinator_LISP=grammar.el debug.el grammar-macros.el
languages_LISP=c.el el.el make.el scm.el erlang.el gcc.el f90.el clang.el
VERSION=1.1beta
DISTDIR=$(top)cedet-topdir-$(VERSION)/cedet/semantic/bovine



all: by bovinator languages

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

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

by: 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: bovinator
bovinator: $(addsuffix c, $(bovinator_LISP))
bovinator: 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: $(by_SEMANTIC_GRAMMAR_EL)
	mkdir $(DISTDIR)
	cp $(by_SEMANTIC_GRAMMAR) $(by_SEMANTIC_GRAMMAR_EL) $(bovinator_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
