diff options
author | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2011-12-09 12:20:26 (GMT) |
---|---|---|
committer | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2011-12-09 12:20:26 (GMT) |
commit | 5608c49bf67d7776a7482fd25a44589850bf6a5a (patch) | |
tree | ad0893a7fff91d6f13fb1950ffebce0a7c035e9d | |
parent | 3a1ecfbe0458ccb8be6bc7295ae9b8f2c9b52471 (diff) | |
download | kolab-docs-5608c49bf67d7776a7482fd25a44589850bf6a5a.tar.gz |
Advance Makefiles to be more efficient, and only build documents if there's actual changes after clean/clean_ids
-rw-r--r-- | About_Kolab_Groupware/Makefile | 8 | ||||
-rw-r--r-- | Administrator_Guide/Makefile | 6 | ||||
-rw-r--r-- | Architecture_and_Design/Makefile | 10 | ||||
-rw-r--r-- | Deployment_Guide/Makefile | 6 | ||||
-rw-r--r-- | Development_Manual/Makefile | 6 | ||||
-rw-r--r-- | Release_Notes/Makefile | 6 | ||||
-rw-r--r-- | Testing_Reference/Makefile | 6 |
7 files changed, 31 insertions, 17 deletions
diff --git a/About_Kolab_Groupware/Makefile b/About_Kolab_Groupware/Makefile index d8bda32..c7df205 100644 --- a/About_Kolab_Groupware/Makefile +++ b/About_Kolab_Groupware/Makefile @@ -1,8 +1,10 @@ -PACKAGE = "Administrator_Guide" +PACKAGE = "About_Kolab_Groupware" all: clean clean_ids - @publican build --publish --embedtoc --langs=all --formats=html-single - @publican install_book --site_config=../site.cfg --lang=en-US + @if [ ! -z "`git status . 2>&1 | grep \"working directory clean\"`" ]; then \ + publican build --embedtoc --publish --langs=all --formats=html,html-single,pdf; \ + publican install_book --site_config=../site.cfg --lang=en-US; \ + fi upload: all @rsync -aHvz publish/home/ hosted.kolabsys.com:./public_html/kolab-docs/ diff --git a/Administrator_Guide/Makefile b/Administrator_Guide/Makefile index 65fde70..04b2054 100644 --- a/Administrator_Guide/Makefile +++ b/Administrator_Guide/Makefile @@ -1,8 +1,10 @@ PACKAGE = "Administrator_Guide" 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 + @if [ ! -z "`git status . 2>&1 | grep \"working directory clean\"`" ]; then \ + publican build --embedtoc --publish --langs=all --formats=html,html-single,pdf; \ + publican install_book --site_config=../site.cfg --lang=en-US; \ + fi upload: all @rsync -aHvz publish/en-US/ hosted.kolabsys.com:./public_html/kolab-docs/ diff --git a/Architecture_and_Design/Makefile b/Architecture_and_Design/Makefile index 618f474..e56f5fc 100644 --- a/Architecture_and_Design/Makefile +++ b/Architecture_and_Design/Makefile @@ -1,8 +1,10 @@ PACKAGE = "Architecture_and_Design" all: clean clean_ids - @publican build --embedtoc --publish --langs=en-US --formats=html,html-single,pdf - @publican install_book --site_config=../site.cfg --lang=en-US + @if [ ! -z "`git status . 2>&1 | grep \"working directory clean\"`" ]; then \ + publican build --embedtoc --publish --langs=all --formats=html,html-single,pdf; \ + publican install_book --site_config=../site.cfg --lang=en-US; \ + fi upload: all @rsync -aHvz publish/en-US/ hosted.kolabsys.com:./public_html/kolab-docs/ @@ -21,5 +23,5 @@ clean_ids: `find en-US/ -type f -name "*.xml"` # Additional quick build targets -pdf: - @publican build --langs=en-US --formats=pdf +pdf: clean clean_ids + @publican build --embedtoc --publish --langs=en-US --formats=pdf diff --git a/Deployment_Guide/Makefile b/Deployment_Guide/Makefile index 790640a..cb1b5a7 100644 --- a/Deployment_Guide/Makefile +++ b/Deployment_Guide/Makefile @@ -1,8 +1,10 @@ PACKAGE = "Deployment_Guide" all: clean clean_ids - @publican build --embedtoc --publish --langs=en-US --formats=html,html-single,pdf - @publican install_book --site_config=../site.cfg --lang=en-US + @if [ ! -z "`git status . 2>&1 | grep \"working directory clean\"`" ]; then \ + publican build --embedtoc --publish --langs=all --formats=html,html-single,pdf; \ + publican install_book --site_config=../site.cfg --lang=en-US; \ + fi upload: all @rsync -aHvz publish/en-US/ hosted.kolabsys.com:./public_html/kolab-docs/ diff --git a/Development_Manual/Makefile b/Development_Manual/Makefile index 3e7c0f0..bcb8701 100644 --- a/Development_Manual/Makefile +++ b/Development_Manual/Makefile @@ -1,8 +1,10 @@ PACKAGE = "Development_Manual" all: clean clean_ids - @publican build --embedtoc --publish --langs=en-US --formats=html,html-single,pdf - @publican install_book --site_config=../site.cfg --lang=en-US + @if [ ! -z "`git status . 2>&1 | grep \"working directory clean\"`" ]; then \ + publican build --embedtoc --publish --langs=all --formats=html,html-single,pdf; \ + publican install_book --site_config=../site.cfg --lang=en-US; \ + fi upload: all @rsync -aHvz publish/en-US/ hosted.kolabsys.com:./public_html/kolab-docs/ diff --git a/Release_Notes/Makefile b/Release_Notes/Makefile index 7c43140..cdcca4d 100644 --- a/Release_Notes/Makefile +++ b/Release_Notes/Makefile @@ -1,8 +1,10 @@ PACKAGE = "Release_Notes" all: clean clean_ids - @publican build --embedtoc --publish --langs=en-US --formats=html,html-single,pdf - @publican install_book --site_config=../site.cfg --lang=en-US + @if [ ! -z "`git status . 2>&1 | grep \"working directory clean\"`" ]; then \ + publican build --embedtoc --publish --langs=all --formats=html,html-single,pdf; \ + publican install_book --site_config=../site.cfg --lang=en-US; \ + fi upload: all @rsync -aHvz publish/en-US/ hosted.kolabsys.com:./public_html/kolab-docs/ diff --git a/Testing_Reference/Makefile b/Testing_Reference/Makefile index 269f8fd..64d78fe 100644 --- a/Testing_Reference/Makefile +++ b/Testing_Reference/Makefile @@ -1,8 +1,10 @@ PACKAGE = "Testing_Reference" all: clean clean_ids - @publican build --embedtoc --publish --langs=en-US --formats=html,html-single,pdf - @publican install_book --site_config=../site.cfg --lang=en-US + @if [ ! -z "`git status . 2>&1 | grep \"working directory clean\"`" ]; then \ + publican build --embedtoc --publish --langs=all --formats=html,html-single,pdf; \ + publican install_book --site_config=../site.cfg --lang=en-US; \ + fi upload: all @rsync -aHvz publish/en-US/ hosted.kolabsys.com:./public_html/kolab-docs/ |