Makefile: Correctly exclude htmlize-hack.el from byte-compilation.
[muse-el.git] / lisp / Makefile
blobabee05880501afe418c59b98a0fe5f682ce8eb76
1 .PHONY: all lisp autoloads clean realclean distclean fullclean install test
2 .PRECIOUS: %.elc
4 DEFS = $(shell test -f ../Makefile.defs && echo ../Makefile.defs \
5 || echo ../Makefile.defs.default)
7 include $(DEFS)
9 EL = $(filter-out $(PROJECT)-autoloads.el,$(wildcard *.el))
10 ELC = $(patsubst %.el,%.elc,$(EL))
12 all: lisp
14 lisp: autoloads $(ELC)
16 $(PROJECT)-build.elc: ../scripts/$(PROJECT)-build.el
17 @echo $(PROJECT)-build.el is not byte-compiled
19 autoloads: $(PROJECT)-autoloads.el
21 $(PROJECT)-autoloads.el: $(EL)
22 @$(EMACS) -q $(SITEFLAG) -batch -l ../scripts/$(PROJECT)-build.el \
23 -f $(PROJECT)-generate-autoloads . ../contrib ../experimental
25 %.elc: %.el
26 @$(EMACS) -q $(SITEFLAG) -batch -l ../scripts/$(PROJECT)-build.el \
27 -f batch-byte-compile $<
29 clean distclean:
30 -rm -f *.elc *~
32 realclean fullclean: clean
33 -rm -f $(PROJECT)-autoloads.el
35 install: autoloads $(ELC)
36 install -d $(ELISPDIR)
37 install -m 0644 $(PROJECT)-autoloads.el $(EL) $(ELC) $(ELISPDIR)
39 test: $(ELC)
40 $(EMACS) -q $(SITEFLAG) -batch -l ../scripts/$(PROJECT)-build.el \
41 -f $(PROJECT)-elint-files $(EL)
43 # Dependencies
45 # This allows us to recompile Muse safely after an update.
47 muse-backlink.elc: muse-mode.elc muse-publish.elc muse.elc
49 muse-blosxom.elc: muse-html.elc muse-project.elc muse-publish.elc
51 muse-book.elc: muse-latex.elc muse-project.elc muse-publish.elc
52 muse-book.elc: muse-regexps.elc
54 muse-colors.elc: muse-mode.elc muse-regexps.elc
56 muse-context.elc: muse-publish.elc
58 muse-docbook.elc: muse-publish.elc muse-regexps.elc muse-xml-common.elc
60 muse-groff.elc: muse-publish.elc
62 muse-html.elc: muse-publish.elc muse-regexps.elc muse-xml-common.elc
64 muse-http.elc: muse-html.elc muse-project.elc
66 muse-ikiwiki.elc: muse-html.elc muse-publish.elc muse.elc
68 muse-import-docbook.elc: muse-import-xml.elc
70 muse-import-latex.elc: muse-regexps.elc muse.elc
72 muse-journal.elc: muse-book.elc muse-html.elc muse-latex.elc
73 muse-journal.elc: muse-publish.elc
75 muse-latex.elc: muse-publish.elc
77 muse-latex2png.elc: muse-publish.elc
79 muse-mode.elc: muse-regexps.elc muse-project.elc
81 muse-poem.elc: muse-latex.elc muse-project.elc
83 muse-project.elc: muse-publish.elc muse.elc
85 muse-protocols.elc: muse-regexps.elc
87 muse-publish.elc: muse-regexps.elc muse.elc
89 muse-texinfo.elc: muse-latex.elc muse-publish.elc
91 muse-wiki.elc: muse-colors.elc muse-regexps.elc muse-mode.elc
93 muse-xml-common.elc: muse-publish.elc muse-regexps.elc
95 muse-xml.elc: muse-publish.elc muse-regexps.elc muse-xml-common.elc
97 muse.elc: muse-protocols.elc muse-regexps.elc