-
Notifications
You must be signed in to change notification settings - Fork 15
/
Makefile
34 lines (26 loc) · 1.28 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
.PHONY: all
all: index.html dist/xws.min.js README_NAMES.md dist/xws_pilots.json dist/xws_upgrades.json
.PHONY: yasb
yasb:
curl -o src/cards-common.coffee https://raw.githubusercontent.com/geordanr/xwing/master/coffeescripts/cards-common.coffee
.PHONY: clean
clean:
rm dist/xws_*.json || true
rm src/xws_data_*.coffee || true
rm README_NAMES.md || true
rm dist/xws.js || true
rm dist/xws-min.js || true
rm index.html || true
dist/xws_%.json: src/cards-common.coffee src/xws_validate.coffee src/make_data_%.coffee
node_modules/.bin/coffee -p $^ | node | fgrep -v '#' | fgrep -v '(exports ? this).xws' > $@
src/xws_data_%.coffee: src/cards-common.coffee src/xws_validate.coffee src/make_data_%.coffee
node_modules/.bin/coffee -p $^ | node > $@
README_NAMES.md: src/xws_data_pilots.coffee src/xws_data_upgrades.coffee src/xws_validate.coffee src/make_readme_names.coffee
node_modules/.bin/coffee -p $^ | node > $@
dist/xws.js: src/xws_data_pilots.coffee src/xws_data_upgrades.coffee src/xws_validate.coffee
#cat a.coffee b.coffee c.coffee | coffee --compile --stdio > bundle.js
cat $^ | node_modules/.bin/coffee -c --stdio > $@
dist/xws.min.js: dist/xws.js
node_modules/.bin/uglifyjs $^ --screw-ie8 -o $@ -c
index.html: src/index.jade
node_modules/.bin/jade --pretty --no-debug --out . $<