# Automatically Generated Makefile by EDE.
# For use with: make
# Relative File Name: speedbar/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= ./ ../cedet/
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 ../cedet --eval '(progn (require (quote cedet-compat)) (require (quote mode-local)))'

top=../
ede_FILES=Project.ede Makefile

LOADDEFS=loaddefs.el
LOADDIRS=.
opt_LISP=rpm.el sb-info.el sb-rmail.el sb-texinfo.el sb-html.el sb-ant.el
VERSION=1.1beta
DISTDIR=$(top)cedet-topdir-$(VERSION)/speedbar



all: opt

.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: opt
opt: $(addsuffix c, $(opt_LISP))
opt: PRELOADS=cedet-compat

tags: 


clean:
	rm -f *.elc

.PHONY: dist

dist: autoloads
	mkdir $(DISTDIR)
	cp loaddefs.el $(opt_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
