]> code.delx.au - gnu-emacs-elpa/blob - Makefile
Add Makefile for byte compiling
[gnu-emacs-elpa] / Makefile
1 # -*- Makefile -*-
2
3 # Compile with noninteractive and relatively clean environment.
4 BATCHFLAGS = -batch -q --no-site-file
5
6 SRCS = js2-mode.el js2-imenu-extras.el
7
8 OBJS = $(SRCS:.el=.elc)
9
10 %.elc: %.el
11 emacs $(BATCHFLAGS) -f batch-byte-compile $^
12
13 all: $(OBJS)
14
15 clean:
16 -rm -f $(OBJS)
17
18 # custom build (require loads)
19 js2-imenu-extras.elc: js2-mode.elc
20 emacs $(BATCHFLAGS) -l ./js2-mode.elc -f batch-byte-compile $*.el