Source

speedbar / Makefile.upstream

Diff from to

File Makefile.upstream

 top=
 ede_FILES=Project.ede Makefile
 
+EMACS=emacs
+LOADPATH= ../common/ 
+LOADDEFS=speedbar-loaddefs.el
+LOADDIRS=.
+init_LISP=speedbar-load.el
+EMACS=emacs
 speedbar_LISP=dframe.el speedbar.el
-EMACS=emacs
-LOADPATH=
 info_TEXINFOS=speedbar.texi
 MAKEINFO=makeinfo
 opt_LISP=rpm.el sb-gud.el sb-info.el sb-rmail.el sb-w3.el sb-texinfo.el bigclock.el sb-html.el sb-ant.el
 aux_AUX=INSTALL ChangeLog
 images_MISC=sb-dir-plus.xpm sb-dir-minus.xpm sb-dir.xpm sb-pg-plus.xpm sb-pg-minus.xpm sb-pg.xpm sb-mail.xpm sb-tag-plus.xpm sb-tag-minus.xpm sb-tag.xpm sb-tag-gt.xpm sb-tag-v.xpm sb-tag-type.xpm sb-image.el sb-obj.xpm sb-chk.xpm sb-objod.xpm sb-label.xpm sb-ro.xpm sb-doc.xpm sb-info.xpm sb-doc-plus.xpm sb-doc-minus.xpm sb-box.xpm sb-box-plus.xpm sb-box-minus.xpm
-VERSION=0.14beta4
+VERSION=1.0.1
 DISTDIR=$(top)speedbar-$(VERSION)
 
 
 
-all: speedbar speedbar.info
+all: autoloads init speedbar speedbar.info
 
+.PHONY: autoloads
+autoloads: 
+	@echo "(add-to-list 'load-path nil)" > $@-compile-script
+	for loadpath in . ${LOADPATH}; do \
+	   echo "(add-to-list 'load-path \"$$loadpath\")" >> $@-compile-script; \
+	done;
+	@echo "(require 'cedet-autogen)" >> $@-compile-script
+	"$(EMACS)" -batch --no-site-file -l $@-compile-script -f cedet-batch-update-autoloads $(LOADDEFS) $(LOADDIRS)
+
+.PHONY: init
+init: $(init_LISP)
+	@echo "(add-to-list 'load-path nil)" > $@-compile-script
+	for loadpath in . ${LOADPATH}; do \
+	   echo "(add-to-list 'load-path \"$$loadpath\")" >> $@-compile-script; \
+	done;
+	@echo "(setq debug-on-error t)" >> $@-compile-script
+	"$(EMACS)" -batch --no-site-file -l $@-compile-script -f batch-byte-compile $^
+
+.PHONY: speedbar
 speedbar: $(speedbar_LISP)
 	@echo "(add-to-list 'load-path nil)" > $@-compile-script
 	for loadpath in . ${LOADPATH}; do \
 	   echo "(add-to-list 'load-path \"$$loadpath\")" >> $@-compile-script; \
 	done;
 	@echo "(setq debug-on-error t)" >> $@-compile-script
-	$(EMACS) -batch -l $@-compile-script -f batch-byte-compile $^
+	"$(EMACS)" -batch --no-site-file -l $@-compile-script -f batch-byte-compile $^
 
 speedbar.info: $(info_TEXINFOS)
-	$(MAKEINFO) -o $@ $<
+	$(MAKEINFO) $<
 
+.PHONY: opt
 opt: $(opt_LISP)
 	@echo "(add-to-list 'load-path nil)" > $@-compile-script
 	for loadpath in . ${LOADPATH}; do \
 	   echo "(add-to-list 'load-path \"$$loadpath\")" >> $@-compile-script; \
 	done;
 	@echo "(setq debug-on-error t)" >> $@-compile-script
-	$(EMACS) -batch -l $@-compile-script -f batch-byte-compile $^
+	"$(EMACS)" -batch --no-site-file -l $@-compile-script -f batch-byte-compile $^
 
 images: 
 	@
 
 
 clean:
-	rm -f *.elc *.html *.info
+	rm -f *.elc *.html *.info*
 
+.PHONY: dist
 
-dist: speedbar.info
-	rm -rf $(DISTDIR)
+dist: autoloads speedbar.info
 	mkdir $(DISTDIR)
-	cp $(speedbar_LISP) $(info_TEXINFOS) speedbar.info* $(opt_LISP) $(aux_AUX) $(images_MISC) $(ede_FILES) $(DISTDIR)
-	tar -cvzf $(DISTDIR).tar.gz $(DISTDIR)
-	rm -rf $(DISTDIR)
+	cp speedbar-loaddefs.el $(init_LISP) $(speedbar_LISP) $(info_TEXINFOS) speedbar.info* $(opt_LISP) $(aux_AUX) $(images_MISC) $(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