This repository has been archived by the owner on Jul 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathMakefile.broken
62 lines (46 loc) · 1.87 KB
/
Makefile.broken
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
.PHONY: all deps z3_build clean check accept compile serve deploy
src_dir = src
scripts_dir = scripts
appengine_dir = dist/gae
appengine_scripts_dir = $(appengine_dir)/scripts
z3_dir = third_party/z3
all:
@echo "Run 'make deps' to bring your dependencies up-to-date."
@echo "Run 'make check' to check against the current baseline and 'make accept' to set a new baseline from the last results."
deps: z3_build
@pip install --upgrade -r requirements.txt
$(z3_dir)/build/config.mk:
@cd $(z3_dir) && python scripts/mk_make.py
z3_build: $(z3_dir)/build/config.mk
@make -j4 -C $(z3_dir)/build
@cp third_party/z3_setup.py $(z3_dir)/build/setup.py
clean:
@find . -name "*.pyc" | perl -nle unlink
accept:
@mv $(src_dir)/z3b_actual.txt $(src_dir)/z3b_baseline.txt
check: clean
@$(scripts_dir)/test-sayc -f > $(src_dir)/z3b_actual.txt && diff -U 7 $(src_dir)/z3b_baseline.txt $(src_dir)/z3b_actual.txt
serve: clean
# Source map generation uses passed-in paths.
@cd $(appengine_dir) && coffee --watch --map --compile scripts/*.coffee &
# FIXME: Doesn't python just have a -C to change CWD before executing?
@cd $(appengine_dir) && python2.7 standalone_main.py
serve-prod: clean compile
@cd $(appengine_dir) && python2.7 production_main.py
compile:
@coffee --compile $(appengine_scripts_dir)/*.coffee
deploy:
@git push deploy master
# FIXME: Need some way to make this work from a macro instead of an explicit list of files.
closure:
java -jar compiler.jar \
--js=$(appengine_scripts_dir)/third_party/jquery-1.6.2.min.js \
--js=$(appengine_scripts_dir)/third_party/jquery.history.js \
--js=$(appengine_scripts_dir)/third_party/bignumber.js \
--js=$(appengine_scripts_dir)/model.js \
--js=$(appengine_scripts_dir)/controller.js \
--js=$(appengine_scripts_dir)/view.js \
--js=$(appengine_scripts_dir)/play.js \
--js_output_file=bidder.js
chromeapp:
zip -r bridge.zip dist/crx/*