Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 46 lines (35 sloc) 1.277 kb
d1da4f6 John Wiegley Go back to using a Makefile
authored
1 ### -*- mode: makefile-gmake -*-
b5bc90c John Wiegley Many improvements to the Makefile
authored
2
d1da4f6 John Wiegley Go back to using a Makefile
authored
3 DIRS = override lib lisp site-lisp
4 SPECIAL = cus-dirs.el autoloads.el
5 INIT_SOURCE = $(wildcard *.el)
6 LIB_SOURCE = $(wildcard override/*.el) $(wildcard lib/*.el) \
7 $(wildcard lisp/*.el) $(wildcard site-lisp/*.el)
0377716 John Wiegley Fixed some targets in Makefile
authored
8 TARGET = autoloads.elc $(patsubst %.el,%.elc, $(LIB_SOURCE))
d1da4f6 John Wiegley Go back to using a Makefile
authored
9 EMACS = emacs
10 EMACS_BATCH = $(EMACS) -Q -batch
11 MY_LOADPATH = -L . $(patsubst %,-L %,$(DIRS))
12 BATCH_LOAD = $(EMACS_BATCH) $(MY_LOADPATH)
b5bc90c John Wiegley Many improvements to the Makefile
authored
13
0377716 John Wiegley Fixed some targets in Makefile
authored
14 all: $(SPECIAL) $(TARGET)
d1da4f6 John Wiegley Go back to using a Makefile
authored
15 for dir in $(DIRS); do \
16 $(BATCH_LOAD) -f batch-byte-recompile-directory $$dir; \
17 done
eb0e991 John Wiegley committed
authored
18
d1da4f6 John Wiegley Go back to using a Makefile
authored
19 cus-dirs.el: Makefile $(LIB_SOURCE)
20 $(EMACS_BATCH) -l cus-dep -f custom-make-dependencies $(DIRS)
21 mv cus-load.el cus-dirs.el
22
23 autoloads.el: Makefile autoloads.in $(LIB_SOURCE)
24 cp -p autoloads.in autoloads.el
25 -rm -f autoloads.elc
26 $(EMACS_BATCH) -l $(shell pwd)/autoloads -l easy-mmode \
27 -f generate-autoloads $(shell pwd)/autoloads.el $(DIRS) \
28 $(shell find $(DIRS) -maxdepth 1 -type d -print)
29
0377716 John Wiegley Fixed some targets in Makefile
authored
30 autoloads.elc: autoloads.el
31
d1da4f6 John Wiegley Go back to using a Makefile
authored
32 %.elc: %.el
33 $(BATCH_LOAD) -l load-path -f batch-byte-compile $<
34
35 init.elc: init.el
36 @rm -f $@
37 $(BATCH_LOAD) -l init -f batch-byte-compile $<
38
39 clean:
40 rm -f autoloads.el* cus-dirs.el *.elc
41
42 fullclean: clean
43 rm -f $(TARGET)
44
45 ### Makefile ends here
Something went wrong with that request. Please try again.