forked from gbishop/TarHeelGameplay
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
66 lines (51 loc) · 2.69 KB
/
Makefile
File metadata and controls
66 lines (51 loc) · 2.69 KB
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
63
64
65
66
dev: DOMAIN=dev.tarheelgameplay.org
dev: SRC=.
dev: HOST=gbserver-vm.cs.unc.edu
dev: build copy
test: DOMAIN=dev.tarheelgameplay.org
test: SRC=../Theme-build/
test: HOST=gbserver-vm.cs.unc.edu
test: optimized copy
production: DOMAIN=tarheelgameplay.org
production: SRC=../Theme-build/
production: HOST=gbserver-vm.cs.unc.edu
production: optimized copy
copy:
rsync -az --delete --exclude .git --exclude tests/robot $(SRC) $(HOST):/var/www/$(DOMAIN)/theme/
transifex:
tx pull -f -l es_MX,fr_FR,de,pt_PT,tr,it,zh
mv languages/fr_FR.po languages/fr.po
mv languages/pt_PT.po languages/pt.po
mv languages/es_MX.po languages/es.po
locale/%/LC_MESSAGES/thr.mo: languages/%.po
mkdir -p $(dir $@)
msgfmt $< --output-file $@
Templates.en.json: templates/*.html searchForm.json readingForm.json categories.json languages.json ratings.json locales.json
python tools/BuildTemplate.py -compact --lang=en --output=$@ $^
Templates.%.json: languages/%.po locale/%/LC_MESSAGES/thr.mo templates/*.html searchForm.json readingForm.json categories.json languages.json ratings.json locales.json
python tools/BuildTemplate.py -compact --lang=$* --output=$@ templates/*.html searchForm.json readingForm.json categories.json languages.json ratings.json locales.json
build: Templates.en.json style.css
rm -f manifest.appcache
style.css: tools/MakeMediaQueries.py style.scss css/_allmediaqueries.scss css/_classes.scss css/_mixins.scss css/_reset.scss css/_creator.scss css/_yourbooks.scss css/_gameplay.scss
python tools/MakeMediaQueries.py > css/_mediaqueries.scss
sassc --style=compressed style.scss style.css
translate:
python tools/BuildTemplate.py --lang=en --extract=languages/thr.pot templates/*.html searchForm.json readingForm.json categories.json languages.json ratings.json locales.json
optimized: build
rm -rf ../Theme-build/*
node ../r.js -o js/app.build.js
cp --parents -r *.php *.json js/main-combined.js js/modernizr.custom.js js/require.min.js js/log.js *.png images style.css Makefile ../Theme-build
mv ../Theme-build/js/main-combined.js ../Theme-build/js/main.js
make versioned
versioned:
cd ../Theme-build; python ../Theme/tools/EditFileVersions.py --used used.txt *.php js/main.js style.css Templates*.json
release:
make optimized
cd ../Theme-build; tar czf /home/gb/Sync/gbservers/roles/wordpress/files/thg-theme.bz2 --exclude=.git --exclude=test .
siteSpeech: build
python tools/makeSiteSpeech.py Templates.*.json
# if the speech file is too short, the flash player loops, need a better fix than this
lame --quiet --preset phon+ speech/en-1star-c.mp3 speech/foo.mp3
mv speech/foo.mp3 speech/en-1star-c.mp3
lame --quiet --preset phon+ speech/en-1star-f.mp3 speech/foo.mp3
mv speech/foo.mp3 speech/en-1star-f.mp3