]> code.delx.au - gnu-emacs-elpa/blob - Makefile
Initial revision
[gnu-emacs-elpa] / Makefile
1 DIRS = $(shell find . ! -name CVS -type d)
2 SPECIAL = chess-auto.el
3 SOURCE = $(filter-out $(SPECIAL),$(shell find -name '*.el'))
4 TARGET = $(patsubst %.el,%.elc,$(SPECIAL) $(SOURCE))
5 EMACS = emacs
6
7 all: $(TARGET)
8 -rm subdirs.elc
9
10 chess-auto.el: chess-auto.in $(SOURCE)
11 cp chess-auto.in chess-auto.el
12 -rm chess-auto.elc
13 $(EMACS) --no-init-file --no-site-file -batch \
14 -l $(shell pwd)/chess-auto \
15 -f generate-autoloads \
16 $(shell pwd)/chess-auto.el $(DIRS)
17
18 %.elc: %.el
19 $(EMACS) --no-init-file --no-site-file -batch \
20 -f batch-byte-compile $<
21
22 clean:
23 rm -f $(TARGET) *~
24
25 fullclean: clean
26 -rm *.elc chess-auto.el