-
Notifications
You must be signed in to change notification settings - Fork 279
/
Makefile
44 lines (27 loc) · 1.2 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
LIMEPY=python bin/lime.py
CLOSURE=$(shell find closure -name "*.js")
LIME=$(shell find lime/src)
DEMO_GAMES_DEPS=$(CLOSURE) $(LIME) lime/css/lime.css.soy.js
ifeq ($(debug), true)
BUILD_FLAGS=-m
endif
soy: css demos
css: lime/css/lime.css.soy.js
demos: lime/demos/tests/assets/monster.plist.soy.js lime/demos/tests/assets/spinner/spinner.zwoptex.soy.js
%.soy.js: %.soy
$(LIMEPY) gensoy $<
%.json.js: %.json
$(LIMEPY) gensoy $<
demo-games: roundball zlizer pong
roundball: lime/demos/roundball/compiled/roundball.js lime/demos/roundball/compiled/roundball.manifest
zlizer: lime/demos/zlizer/compiled/zlizer.js lime/demos/zlizer/compiled/zlizer.manifest
pong: lime/demos/pong/compiled/pong.js lime/demos/pong/compiled/pong.manifest
lime/demos/roundball/compiled/roundball.js: $(DEMO_GAMES_DEPS) lime/demos/roundball/*.js
$(LIMEPY) build rb -a -o $@ $(BUILD_FLAGS)
lime/demos/zlizer/compiled/zlizer.js: $(DEMO_GAMES_DEPS) lime/demos/zlizer/*.js
$(LIMEPY) build zlizer -a -o $@ $(BUILD_FLAGS)
lime/demos/pong/compiled/pong.js: $(DEMO_GAMES_DEPS) lime/demos/pong/*.js
$(LIMEPY) build pong -o $@ $(BUILD_FLAGS)
%.manifest: .FORCE
sed -i "" -e "s/\(# Updated on: \).*/\1$$(date '+%Y-%m-%d %H:%M:%S')/" $@
.FORCE: