# Automatically Generated Makefile by EDE.
# For use with: make
# Relative File Name: cedet/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=.
common_LISP=cedet-android.el cedet-compat.el cedet-cscope.el cedet-edebug.el cedet-files.el cedet-global.el cedet-graphviz.el cedet-idutils.el cedet-java.el cedet-m3.el cedet.el data-debug.el fame.el inversion.el mode-local.el pprint.el pulse.el working.el
init_LISP=semantic.el srecode.el ede.el cogre.el
VERSION=1.1beta
DISTDIR=$(top)cedet-topdir-$(VERSION)/cedet



all: common init srecode semantic EDE 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))


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

.PHONY: common
common: $(addsuffix c, $(common_LISP))
common: PRELOADS=cedet-compat

.PHONY: init
init: $(addsuffix c, $(init_LISP))
init: PRELOADS=cedet-compat

.PHONY:srecode
srecode:
	$(MAKE) -C srecode

.PHONY:semantic
semantic:
	$(MAKE) -C semantic

.PHONY:EDE
EDE:
	$(MAKE) -C ede

.PHONY:Cogre
Cogre:
	$(MAKE) -C cogre

tags: 
	$(MAKE) -C srecode/ $(MFLAGS) $@
	$(MAKE) -C semantic/ $(MFLAGS) $@
	$(MAKE) -C ede/ $(MFLAGS) $@
	$(MAKE) -C cogre/ $(MFLAGS) $@


clean:
	rm -f *.elc

.PHONY: dist

dist: autoloads
	mkdir $(DISTDIR)
	cp loaddefs.el $(common_LISP) $(init_LISP) $(ede_FILES) $(DISTDIR)
	$(MAKE) -C srecode $(MFLAGS) DISTDIR=$(DISTDIR)/srecode dist
	$(MAKE) -C semantic $(MFLAGS) DISTDIR=$(DISTDIR)/semantic dist
	$(MAKE) -C ede $(MFLAGS) DISTDIR=$(DISTDIR)/ede dist
	$(MAKE) -C cogre $(MFLAGS) DISTDIR=$(DISTDIR)/cogre dist

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
