forked from wamp-proto/wamp-proto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (27 loc) · 888 Bytes
/
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
all:
@echo "Targets:"
@echo ""
@echo " clean Cleanup"
@echo " img Generate optimized and compressed images"
@echo " freeze Freeze dynamic Web site into static pages"
@echo " test Test dynamic Web site (Twisted)"
@echo " test_frozen Test frozen Web site (Twisted)"
@echo " upload Upload frozen Web site to S3"
@echo ""
deploy: clean img freeze upload
clean:
rm -rf website/wampws/build
rm -rf website/wampws/static/img/gen
scons -uc
img:
scons
freeze:
python website/wampws/__init__.py -f
upload:
python website/wampws/upload.py --bucket 'wamp.ws' --directory 'build'
test:
python website/wampws/__init__.py -d --widgeturl ''
test_widget:
python website/wampws/__init__.py -d --widgeturl 'http://127.0.0.1:8090/widget'
test_frozen:
python website/wampws/__init__.py -f -d