-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (25 loc) · 710 Bytes
/
Copy pathMakefile
File metadata and controls
33 lines (25 loc) · 710 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
SHELL = /bin/sh
EMACS = emacs
FILES = $(wildcard shampoo*.el)
ELCFILES = $(FILES:.el=.elc)
.PHONY: all compile compile-batch clean
all: compile
compile: $(ELCFILES)
.depend: $(FILES)
@echo Computing dependencies
@rm -f .depend
@for f in $(FILES); do \
sed -n "s/(require '\(shampoo-.*\))/$${f}c: \1.elc/p" $$f >> .depend;\
done
-include .depend
$(ELCFILES): %.elc: %.el
$(EMACS) --batch -Q -L . $(LIBS) -f batch-byte-compile $<
# Byte-compile all files in one batch. This is faster than
# compiling each file in isolation, but also less stringent.
compile-batch: clean
$(EMACS) --batch -Q -L . $(LIBS) -f batch-byte-compile ${FILES}
clean:
rm -f *~
rm -f \#*\#
rm -f *.elc
rm -f .depend