-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (30 loc) · 981 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
36
37
38
39
40
41
42
43
# Makefile to simplify some common AppEngine actions.
# Use 'make help' for a list of commands.
DEV_APPSERVER= dev_appserver.py
DEV_APPSERVER_FLAGS=
APPCFG= appcfg.py
APPCFG_FLAGS=
default: help
help:
@echo "Available commands:"
@sed -n '/^[a-zA-Z0-9_.]*:/s/:.*//p' <Makefile | sort
serve:
$(DEV_APPSERVER) $(DEV_APPSERVER_FLAGS) .
serve_remote:
$(DEV_APPSERVER) $(DEV_APPSERVER_FLAGS) --address 0.0.0.0 .
serve_email:
$(DEV_APPSERVER) $(DEV_APPSERVER_FLAGS) --enable_sendmail .
serve_remote_email:
$(DEV_APPSERVER) $(DEV_APPSERVER_FLAGS) --enable_sendmail --address 0.0.0.0 .
update:
@echo "Updating `cat app.yaml | sed -n 's/^application: *//p'`"
@echo "r`svn info | sed -n 's/^Revision: *//p'`" \
>templates/live_revision.html
$(APPCFG) $(APPCFG_FLAGS) update .
@svn revert templates/live_revision.html
upload: update
deploy: update
update_indexes:
$(APPCFG) $(APPCFG_FLAGS) update_indexes .
vacuum_indexes:
$(APPCFG) $(APPCFG_FLAGS) vacuum_indexes .