3 .PHONY: all autoloads clean compile help info package
9 autoloads: $(PKG)-loaddefs.el
11 compile: clean $(PKG).elc
14 $(info make help - show brief help)
15 $(info make - generate a tar file containing the package)
16 $(info make all - ditto)
17 $(info make package - ditto)
18 $(info make info - generate the info manual)
19 $(info make compile - byte-compile the package lisp files)
20 $(info make autoloads - create $(PKG)-loaddefs.el to load Elpher in-place)
21 $(info make clean - remove generated files)
25 $(MAKEINFO) --no-split $< -o $@
28 $(MAKEINFO) --no-split --html $< -o $@
31 $(MAKEINFO) --no-split --pdf $< -o $@
38 $(PKG)-$(VERSION).tar: $(PKG).info dir *.el COPYING
39 mkdir $(PKG)-$(VERSION)
40 cp -a $? $(PKG)-$(VERSION)/
41 $(TAR) -cf $@ $(PKG)-$(VERSION)
42 rm -rf $(PKG)-$(VERSION)
44 package: $(PKG)-$(VERSION).tar
47 rm -f $(PKG).elc $(PKG)-loaddefs.el
48 rm -f $(PKG).info dir $(PKG)-$(VERSION).tar
49 rm -f $(PKG).html $(PKG).pdf $(PKG).aux $(PKG).fn $(PKG).fns $(PKG).log $(PKG).toc
52 (add-to-list 'load-path (directory-file-name\n\
53 ........................(or (file-name-directory #$$) (car load-path))))
55 #' (ends emacs font-face garbage due to previous single quote)
59 --eval "(setq-default backup-inhibited t)" \
60 --eval "(setq generated-autoload-file \"$(PWD)/$@\")" \
61 --eval "(update-directory-autoloads \"$(PWD)\")"
62 sed -i "s/^;;; Code:$$/;;; Code:\n\n$(subst ., ,$(LOADDEFS_TPL))/" $@
65 $(EMACS) -f batch-byte-compile $(@:.elc=.el)