-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (18 loc) · 728 Bytes
/
Copy pathMakefile
File metadata and controls
24 lines (18 loc) · 728 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
emacs?=emacs
emacs_options=-Q -batch
faceup_directory=faceup
byte_compilation=byte-compile-file
all: compile
compile:
$(emacs) $(emacs_options) --eval="($(byte_compilation) \"modern-cpp-font-lock.el\")"
prepare_test:
wget --no-clobber --directory-prefix $(faceup_directory) \
https://raw.githubusercontent.com/Lindydancer/faceup/master/faceup.el
compile_test:
$(emacs) $(emacs_options) --eval="($(byte_compilation) \"$(wildcard $(faceup_directory)/*.el)\")"
test: prepare_test compile compile_test
@echo "Using $(shell which $(emacs))"
@echo "$(shell $(emacs) --version)"
$(emacs) $(emacs_options) -l ert -l modern-cpp-font-lock-setup-test.el -f ert-run-tests-batch-and-exit
clean:
rm -rf *.elc $(faceup_directory)