-
Notifications
You must be signed in to change notification settings - Fork 18
/
Makefile
73 lines (47 loc) · 1.33 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
MODULES := $(wildcard modules/*)
$(MODULES):
$(MAKE) -C $@ $(MAKECMDGOALS)
fmt-root:
cljfmt check dev profiling resources src test deps.edn tests.edn
fmt: $(MODULES) fmt-root
lint-root:
clj-kondo --lint src test deps.edn
lint: $(MODULES) lint-root
prep:
clojure -X:deps prep
test-root: prep
clojure -M:test:kaocha --profile :ci
test: $(MODULES) test-root
test-coverage: $(MODULES)
clean-root:
rm -rf .clj-kondo/.cache .cpcache target
clean: $(MODULES) clean-root
$(MAKE) -C job-ig clean
build-frontend:
$(MAKE) -C modules/frontend build
build-frontend-image: build-frontend
docker build -t blaze-frontend:latest modules/frontend
build-ingress:
$(MAKE) -C modules/ingress all
uberjar: prep
clojure -T:build uber
build-image: uberjar
docker build -t blaze:latest .
build-all: build-image build-frontend-image build-ingress
outdated:
clojure -M:outdated
deps-tree:
clojure -X:deps tree
deps-list:
clojure -X:deps list
emacs-repl: prep
clj -M:test:emacs-repl
cloc-prod-root:
cloc src
cloc-prod: $(MODULES) cloc-prod-root
cloc-test-root:
cloc dev profiling test .github
cloc-test: $(MODULES) cloc-test-root
.PHONY: $(MODULES) lint-root lint prep test-root test test-coverage clean-root \
clean build-frontend build-frontend-image build-ingress uberjar build-all \
outdated deps-tree deps-list emacs-repl cloc-prod cloc-test