-
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (21 loc) · 694 Bytes
/
Makefile
File metadata and controls
29 lines (21 loc) · 694 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
.PHONY: build test testcode testjs testjar clean
build: buildjar.sh
bash buildjar.sh
# Order is important because one command deletes build artifacts of the other.
# Also, not sure if this would stop correctly on error:
# echo $^ | xargs -n 1 bash
test: testcode-clj testcode-cljs testjar
testcode-clj:
lein test
testcode-cljs:
lein doo node once
# Test by executing parser on test file and expect at least one line of output (grep .)
testjar: build testjar.sh
bash testjar.sh | grep .
# Filenames of :tangle files must be hardcoded :(
buildjs.sh buildjar.sh testjar.sh: README.org
emacs --batch -l org $< -f org-babel-tangle
clean:
$(RM) build*.sh
$(RM) test*.sh
$(RM) target/