-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
61 lines (39 loc) · 1.48 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
.PHONY: prod dev js html build release clean
all: build
dist:
mkdir -p resources/dist/fonts
clean:
rm -rf target/public
rm -rf resources/dist
target/public/cljs-out/prod-main.js:
clojure -A:fig-deps:prod-deps:min
target/public/cljs-out/cards-main.js:
clojure -A:fig-deps:prod-deps:cards-deps:cards
resources/dist/app.js: dist target/public/cljs-out/prod-main.js
cp target/public/cljs-out/prod-main.js resources/dist/app.js
resources/dist/cards.js: dist target/public/cljs-out/cards-main.js
cp target/public/cljs-out/cards-main.js resources/dist/cards.js
resources/dist/index.html: dist
cp resources/public/prod.html resources/dist/index.html
resources/dist/cards.html: dist
cp resources/public/cards.html resources/dist/cards.html
resources/dist/index.css: dist
postcss -o resources/dist/index.css src/css/*.css
resources/dist/fonts/NotoSans-Regular.ttf: dist
cp resources/public/fonts/NotoSans-Regular.ttf resources/dist/fonts
resources/dist/fonts/NotoSans-Bold.ttf: dist
cp resources/public/fonts/NotoSans-Bold.ttf resources/dist/fonts
css: resources/dist/index.css
fonts: resources/dist/fonts/NotoSans-Regular.ttf resources/dist/fonts/NotoSans-Bold.ttf
js: resources/dist/app.js resources/dist/cards.js
html: resources/dist/index.html resources/dist/cards.html
build: js html css fonts
release: build
prod:
clj -A:fig-deps:prod-deps:prod
dev:
clj -A:fig-deps:dev-deps:dev
cards:
clj -A:fig-deps:prod-deps:cards-deps:cards
outdated:
clj -A:fig-deps:dev-deps:prod-deps:outdated