Whamcloud - gitweb
LUDOC-119 build: chunked html output directory. 43/6943/2
authorRichard Henwood <richard.henwood@intel.com>
Thu, 11 Jul 2013 19:33:54 +0000 (14:33 -0500)
committerRichard Henwood <richard.henwood@intel.com>
Fri, 12 Jul 2013 19:15:38 +0000 (19:15 +0000)
The chunked-html output goes into a suitabably named
directory.

Signed-off-by: Richard Henwood <richard.henwood@intel.com>
Change-Id: I1e7c431c22c27cd24ef0d992adaa215e3724301d
Reviewed-on: http://review.whamcloud.com/6943
Tested-by: Hudson
Reviewed-by: Przemyslaw Dubaniewicz <przemyslaw@dubaniewicz.com>
Makefile

index ad0dd3e..a5b78cd 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -9,6 +9,7 @@ MASTER_URL_LAB=http://build.lab.whamcloud.com:8080/job/lustre-manual/lastSuccess
 MASTER_XHTML=$(MASTER_URL)/artifact/$(TGT_BASE).xhtml
 MASTER_XHTML_LAB=$(MASTER_URL_LAB)/artifact/$(TGT_BASE).xhtml
 TGT_MASTER=$(TMP)/mastermanual
+CHUNKED_HTML=chunked-html
 
 
 RNG_UBN=/usr/share/xml/docbook/schema/rng/5.0/docbookxi.rng
@@ -29,7 +30,7 @@ PRIMARYXSL=$(XSL)/$(subst $(TGT_BASE).,,$@)/docbook.xsl
 PRIMARYCHUNKXSL=$(XSL)/html/chunkfast.xsl
 
 .PHONY: all
-all: clean check xhtml html chunked-html pdf epub 
+all: clean check xhtml html chunked-html pdf epub
 
 .PHONY: check
 check: $(SRC_XML)
@@ -38,9 +39,9 @@ check: $(SRC_XML)
 # Note: can't use "suffix" instead of "subst", because it keeps the '.'
 # Note: xsl:import is resolved at compile time, so the primary xsl
 #   is substituted into the custom xsl with sed before compliation.
-$(TGT_BASE)/%.html: $(SRCS)
+$(CHUNKED_HTML)/%.html: $(SRCS)
        sed -e 's;PRIMARYXSL;${PRIMARYCHUNKXSL};' ./style/customstyle.xsl | \
-       xsltproc --xinclude -o ${TGT_BASE}/ - ./index.xml
+       xsltproc --xinclude -o ${CHUNKED_HTML}/ - ./index.xml
 
 $(TGT_BASE).html $(TGT_BASE).xhtml $(TGT_BASE).epub: $(SRCS)
        sed -e 's;PRIMARYXSL;${PRIMARYXSL};' ./style/customstyle.xsl | \
@@ -74,8 +75,8 @@ epub: $(TGT_BASE).epub
        zip -Xr9D $(TGT_BASE).epub META-INF/*
 
 .PHONY: chunked-html
-chunked-html: $(TGT_BASE)/%.html
-       cp -r ./figures ./${TGT_BASE}
+chunked-html: $(CHUNKED_HTML)/%.html
+       cp -r ./figures ./${CHUNKED_HTML}
 
 
 # get the git hash for the last successful build of the manual