-
Notifications
You must be signed in to change notification settings - Fork 23
/
build.ninja
23 lines (18 loc) · 995 Bytes
/
build.ninja
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
rule batch_emacs
command = emacs -batch $args
pool = console
rule compile_file
command = emacs -batch --eval "(setq byte-compile-error-on-warn t)" $args -f batch-byte-compile $in
build dash.el: batch_emacs
# In the code below we remove dash.el manually, because when it's "dirty",
# url-copy-file won't overwrite it (it may ignore it but that's different).
args = --eval "(progn$
(require 'url)$
(delete-file \"dash.el\")$
(url-copy-file \"https://raw.githubusercontent.com/magnars/dash.el/master/dash.el\" \"dash.el\"))"
build color-identifiers-mode.elc: compile_file color-identifiers-mode.el | dash.el
args = -l dash.el
build tests.elc: compile_file tests.el | dash.el color-identifiers-mode.elc
args = -l dash.el -l color-identifiers-mode.elc
build tests: batch_emacs | dash.el color-identifiers-mode.elc tests.elc
args = -l dash.el -l color-identifiers-mode.elc -l tests.elc -f ert-run-tests-batch-and-exit