forked from pyconsk/2016.pycon.sk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (26 loc) · 925 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
# Frequently used commands
.PHONY: help messages compile staging live publish
help:
@echo "Please use 'make <target>' where <target> is one of:"
@echo " init initialize virtual enviroment and install requirements"
@echo " messages extract translation strings and update translation catalogs"
@echo " compile compile translation catalogs"
@echo " staging generate static html files in staging branch"
@echo " live push staging branch into live branch"
@echo " pull pull all branches from remote repository"
@echo " push push all branches to remote repository"
init:
@bin/init-envs.sh
messages:
@cd src && pybabel extract -F babel.cfg -o messages.pot .
@cd src && pybabel update -i messages.pot -d translations
compile:
@cd src && pybabel compile -d translations
staging:
@bin/staging-gen.sh
live:
@bin/live-copy.sh
pull:
@bin/pull-all.sh
push:
@bin/push-all.sh