forked from elistevens/xws-spec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
22 lines (16 loc) · 895 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
.PHONY: all
all: index.html dist/xws.min.js README_NAMES.md
.PHONY: yasb
yasb:
curl -o src/cards-common.coffee https://raw.githubusercontent.com/geordanr/xwing/master/coffeescripts/cards-common.coffee
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 . $<