-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (44 loc) · 1.49 KB
/
Makefile
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Authoritative build rules for tick.
# If you don't have GNU Make on your system, use this file as a
# cribsheet for how to build various aspects of tick.
STYLESDIR = .
STYLESHEET = juxt.css
.PHONY: watch default deploy test dev-docs-cljs docs/index.html
default: docs/index.html
# Build the docs
docs/index.html: docs/*.adoc docs/docinfo*.html ${STYLESDIR}/${STYLESHEET}
asciidoctor -d book \
-a "webfonts!" \
-a stylesdir=../${STYLESDIR} \
-a stylesheet=${STYLESHEET} \
-o $@ \
docs/index.adoc
deploy-docs:
make
test-clj:
./bin/kaocha :clj
test-node:
rm -rf cljs-test-runner-out && mkdir -p cljs-test-runner-out/gen && clojure -Sverbose -M:test-node
# For developing the cljs used by the documentation, starts a REPL and a server at localhost:9500
dev-docs-cljs:
clojure -M:docs-watch
# Builds production js and html files
release-docs-cljs:
make && clojure -A:docs-release
test-cljs-shadow:
clojure -Atest-cljs -X com.widdindustries.tiado-cljs2/tests-ci-shadow :compile-mode :release
test:
make test-clj && make test-cljs
clean:
clj -T:build clean
install:
make clean && clj -T:build jar && clj -T:build install \
&& mkdir -p tmp && cd tmp
deploy:
clj -T:build deploy
lint:
clj-kondo --lint src test
# hooray for stackoverflow
.PHONY: list
list:
@$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$' | xargs