Make sure the autoloads file is distributed with releases.
[muse-el.git] / lisp / Makefile
blob5a2cc2253006050f544dae2405bc43448f5fab3e
1 .PHONY: all lisp autoloads clean realclean distclean fullclean install test
2 .PRECIOUS: %.elc
4 include ../Makefile.defs
6 EL = $(filter-out $(PROJECT)-autoloads.el,$(wildcard *.el))
7 ELC = $(patsubst %.el,%.elc,$(EL))
9 all: lisp
11 lisp: autoloads $(ELC)
13 $(PROJECT)-build.elc: ../scripts/$(PROJECT)-build.el
14 @echo $(PROJECT)-build.el is not byte-compiled
16 autoloads: $(PROJECT)-autoloads.el
18 $(PROJECT)-autoloads.el: $(EL)
19 @$(EMACS) -q $(SITEFLAG) -batch -l ../scripts/$(PROJECT)-build.el \
20 -f $(PROJECT)-generate-autoloads . ../contrib ../experimental
22 %.elc: %.el
23 @$(EMACS) -q $(SITEFLAG) -batch -l ../scripts/$(PROJECT)-build.el \
24 -f batch-byte-compile $<
26 clean distclean:
27 -rm -f *.elc *~
29 realclean fullclean: clean
30 -rm -f $(PROJECT)-autoloads.el
32 install: autoloads $(ELC)
33 install -d $(ELISPDIR)
34 install -m 0644 $(PROJECT)-autoloads.el $(EL) $(ELC) $(ELISPDIR)
36 test: $(ELC)
37 $(EMACS) -q $(SITEFLAG) -batch -l ../scripts/$(PROJECT)-build.el \
38 -f $(PROJECT)-elint-files $(EL)