Makefile refactoring.
[muse-el.git] / Makefile
blob51f39fe4090b4d4dc5d02995d2f35bebeb76c8b3
1 .PHONY: all examples clean realclean distclean fullclean test dist
2 EMACS = emacs
3 ELC = $(patsubst %.el,%.elc,$(wildcard *.el))
5 all: $(ELC)
7 examples:
8 (cd examples && $(MAKE))
10 muse-build.elc: scripts/muse-build.el
11 @echo muse-build.el is not byte-compiled
13 %.elc: %.el
14 @$(EMACS) --no-init-file --no-site-file -batch \
15 -l scripts/muse-build.el -L . \
16 -f batch-byte-compile $<
18 clean:
19 -rm -f *.elc *~
20 (cd examples && $(MAKE) clean)
22 realclean distclean fullclean: clean
23 (cd examples && $(MAKE) distclean)
25 test: fullclean $(ELC)
26 emacs -q -batch -L . -l scripts/muse-build.el \
27 -f muse-elint-files muse-*.el
29 dist: clean
30 (cd ..; tar cvzf ~/Public/Emacs/muse.tar.gz muse)