summaryrefslogtreecommitdiff
path: root/Makefile.common
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.common')
-rw-r--r--Makefile.common14
1 files changed, 10 insertions, 4 deletions
diff --git a/Makefile.common b/Makefile.common
index 56aa4d7..f756d83 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -1,9 +1,15 @@
all: clean clean_ids update-language
- @publican build --embedtoc --publish --langs=all --formats=html,html-single,pdf
+ @if [ "$(SKIP_UPDATE_LANG)" != "1" ]; then \
+ publican build --embedtoc --publish --langs=all --formats=html,html-single,pdf; \
+ else \
+ publican build --embedtoc --publish --langs=en-US --formats=html,html-single,pdf; \
+ fi
@publican install_book --site_config=../site.cfg --lang=en-US
- @for lang in $$(ls -d *-* | grep -v en-US); do \
- publican install_book --site_config=../site.cfg --lang=$$lang; \
- done
+ @if [ "$(SKIP_UPDATE_LANG)" != "1" ]; then \
+ for lang in $$(ls -d *-* | grep -v en-US); do \
+ publican install_book --site_config=../site.cfg --lang=$$lang; \
+ done \
+ fi
clean:
@publican clean