-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathMakefile
More file actions
89 lines (58 loc) · 1.69 KB
/
Copy pathMakefile
File metadata and controls
89 lines (58 loc) · 1.69 KB
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
MODULES := $(wildcard modules/*)
$(MODULES):
$(MAKE) -C $@ $(MAKECMDGOALS)
fmt-root:
cljfmt --file-pattern "\.(clj|edn)?$$" check dev profiling resources src test deps.edn tests.edn
fmt: $(MODULES) fmt-root
lint-workflows:
actionlint
lint-shell:
./scripts/lint-shell.sh
lint-root: lint-workflows lint-shell
clj-kondo --lint dev src test deps.edn build.clj deps_prep.clj
lint: $(MODULES) lint-root
build-ig:
$(MAKE) -C modules/ig build
prep:
$(MAKE) -C modules/module-base prep
clojure -X:deps prep
test-root: prep
clojure -M:test:kaocha --profile :ci
test: $(MODULES) test-root
test-focus: prep
clojure -M:test:kaocha --profile :ci --focus "$(FOCUS)"
test-coverage: $(MODULES)
clean-root:
rm -rf .clj-kondo/.cache .cpcache target
clean: $(MODULES) clean-root
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
deps-prep:
clojure -T:deps-prep run
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-shell lint build-ig prep \
test-root test test-focus test-coverage clean-root clean build-frontend \
build-frontend-image build-ingress uberjar build-all \
outdated deps-tree deps-list deps-prep emacs-repl cloc-prod cloc-test