-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
75 lines (57 loc) · 1.14 KB
/
makefile
File metadata and controls
75 lines (57 loc) · 1.14 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
COFFEE=./node_modules/coffee-script/bin/coffee
.PHONY: all data sass serve
all: data sass cljs
#
# Development
# ===========
#
deps:
git submodule update --recursive --init
npm install
prepare: deps
node_modules/browserify/bin/cmd.js \
-r fontfaceobserver \
-r markdown-it \
-r markdown-it-footnote \
> src/bundle.js
DATA = resources/data/do.json \
resources/data/am.json \
resources/data/think.json
resources/%.json: %.yaml
mkdir -p $(@D)
python -c 'import sys, yaml, json; \
json.dump(yaml.load(sys.stdin), sys.stdout, indent=4)' \
< $< > $@
data: $(DATA)
sass:
touch sass/main.scss
compass compile --output-style compressed
cljs:
lein cljsbuild once
figwheel:
rlwrap lein figwheel
serve:
$(COFFEE) server.coffee
# pip install watchdog
watch-data:
watchmedo shell-command \
--recursive \
--command="$(MAKE) data" \
data/
watch-sass:
compass watch
watch-cljs:
lein cljsbuild auto debug
dev:
trap "trap - TERM && kill 0" EXIT TERM INT; \
$(MAKE) watch-data & \
$(MAKE) watch-sass & \
$(MAKE) serve & \
$(MAKE) figwheel
#
# Deployment
# ==========
#
DEST = ~/public/
copy:
rsync -av resources/* $(DEST)