forked from h5bp/html5boilerplate.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (33 loc) · 1.18 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
#############################################################################
#
# SDE Static Assets Makefile
#
PYTHON ?= python
.PHONY = info messages build force
#LANGUAGES="en_US"
LANGUAGES="cn_PRC,cs_CZ,da_DK,de_DE,en_US,es,fr_FR,he,it,ja,nl,pt_BR,ru,sk_SK,sr"
info:
@echo "Usage:"
@echo ""
@echo '* `make messages`: Generate message files for this project'
@echo '* `make docs`: Builds docs files for this project'
@echo '* `make build`: Builds translated files for this project'
@echo ""
messages: force
@echo "Cool. Let's start..."
@python ./scripts/static_gettext.py --languages "${LANGUAGES}"
@echo "All done. New message files are in ./locale/"
docs: force
@echo "Cool. First I'm gonna update the wiki files"
git submodule update --init
cd docs/wiki-upstream && git pull origin master && cd ../..
@echo "Let's build the docs..."
/usr/local/bin/node ../h5bp-docs/bin/h5bp-cli.js --config docs-config.js
@echo ""
@echo "All done. New docs files are in ./src/docs/"
build: force
@echo "Cool. Let's translate this."
@python ./scripts/static_gettext.py --languages "${LANGUAGES}" --build
@echo "All done translating. New files are in ./built/"
@echo ""
force: ;