summaryrefslogtreecommitdiff
path: root/Testing_Reference/Makefile
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-08-13 10:19:22 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-08-13 10:19:22 (GMT)
commit757b1d1e8bd3682a6634802b9de50755a8684da9 (patch)
tree21c484be415bf7194808b25f5f5821a9b74c5e7c /Testing_Reference/Makefile
parent232cb6a80ac58e296aac9f4ed82ac73232a5a63c (diff)
downloadkolab-docs-757b1d1e8bd3682a6634802b9de50755a8684da9.tar.gz
Update Makefiles to allow adding languages and doing all sorts of other magic
Diffstat (limited to 'Testing_Reference/Makefile')
-rw-r--r--Testing_Reference/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/Testing_Reference/Makefile b/Testing_Reference/Makefile
index 350c507..1e3b7fc 100644
--- a/Testing_Reference/Makefile
+++ b/Testing_Reference/Makefile
@@ -1,8 +1,12 @@
PACKAGE = "Testing_Reference"
all: clean clean_ids
- publican build --embedtoc --publish --langs=all --formats=html,html-single,pdf
- publican install_book --site_config=../site.cfg --lang=en-US
+ @publican update_pot
+ @publican update_po --langs=all
+ @publican build --embedtoc --publish --langs=all --formats=html,html-single,pdf
+ @for lang in $$(ls -d *-*/); do \
+ publican install_book --site_config=../site.cfg --lang=$$lang; \
+ done
clean:
@publican clean
@@ -15,3 +19,7 @@ clean_ids:
-e 's/((\s{4})+)\s*/\1/g' \
-e 's/\s*$$//g' \
`find en-US/ -type f -name "*.xml"`
+
+add-language:
+ @publican update_pot
+ @publican update_po --langs=$(LANGUAGE)