forked from UNICEF-Youth-Section/Locast-Android
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
22 lines (16 loc) · 636 Bytes
/
Makefile
File metadata and controls
22 lines (16 loc) · 636 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
lang=it en pt
# the name of the directory that Locast has been extracted to
srcdir = Locast
version := $(shell sed '/versionName/ { s/.*versionName="\([^"]*\)".*/\1/; s/ /_/g; p }; d' AndroidManifest.xml)
out_package := ../$(srcdir)_$(version).tar.gz
all: README.html export_strings import_strings
package: $(out_package)
######################################################
export_strings:
a2po export --no-template --ignore-fuzzy $(lang)
import_strings:
a2po import --ignore-fuzzy
%.html: %.md
markdown $< > $@
$(out_package): .
tar -zcv --exclude .git --exclude-vcs --exclude-backups -X .gitignore -f $@ -C ../ $(srcdir)