-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
44 lines (31 loc) · 1.15 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
.DEFAULT_GOAL := test
.PHONY: test watch
STYLESDIR = ../asciidoctor-stylesheet-factory/stylesheets
STYLESHEET = juxt.css
.PHONY: watch default deploy test
official-test:
clj -Atest -i :official
test-clj:
clojure -Atest -e deprecated
test-cljs:
rm -rf cljs-test-runner-out && mkdir -p cljs-test-runner-out/gen && clojure -Sverbose -Atest-cljs
test:
make test-clj && make test-cljs
lint:
clj-kondo --lint src/juxt --lint test/juxt
watch:
find . -regex ".*\\.clj[cs]?" | entr make test
pom:
rm pom.xml; clojure -Spom; echo "Now use git diff to add back in the non-generated bits of pom"
# Dev pom is used to created development project with intellij
dev-pom:
rm pom.xml && clojure -R:dev:dev-rebel:dev-nrepl:test-cljs -C:dev:dev-rebel:dev-nrepl:test-cljs -Spom
deploy:
pom
mvn deploy
figwheel:
clojure -R:dev:dev-nrepl:dev-rebel -C:dev:dev-nrepl:dev-rebel:test -m figwheel.main --build jsonschema --repl
# 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