aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Burgess <matthew@linuxfromscratch.org>2004-05-23 21:24:21 +0000
committerMatthew Burgess <matthew@linuxfromscratch.org>2004-05-23 21:24:21 +0000
commit63075c901be0aa88bc06fa761ce8bade537d8205 (patch)
tree4622e139df8b24c68807b75d7ca4368437551309
parent004ff6ae74d294722c813b7797ea772fe3a01d5c (diff)
Makefile changes to integrate with render-lfs-book.sh
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/b5_1/BOOK@3703 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
-rw-r--r--Makefile17
1 files changed, 11 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 8b534c69b..0c86666c6 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,13 @@
BASEDIR=~/lfs-book
+CHUNK_QUIET=0
+PDF_OUTPUT=LFS-BOOK.pdf
+PRINT_OUTPUT=LFS-BOOK-PRINTABLE.pdf
+NOCHUNKS_OUTPUT=LFS-BOOK.html
lfs:
- xsltproc --xinclude --nonet -stringparam base.dir $(BASEDIR)/ \
- stylesheets/lfs-chunked.xsl index.xml
+ xsltproc --xinclude --nonet -stringparam chunk.quietly $(CHUNK_QUIET) \
+ -stringparam base.dir $(BASEDIR)/ stylesheets/lfs-chunked.xsl \
+ index.xml
if [ ! -e $(BASEDIR)/stylesheets ]; then \
mkdir -p $(BASEDIR)/stylesheets; \
@@ -25,18 +30,18 @@ pdf:
xsltproc --xinclude --nonet --output lfs.fo stylesheets/lfs-pdf.xsl \
index.xml
sed -i -e "s/inherit/all/" lfs.fo
- fop.sh lfs.fo lfs.pdf
+ fop.sh lfs.fo $(PDF_OUTPUT)
print:
xsltproc --xinclude --nonet --output lfs-print.fo \
stylesheets/lfs-print.xsl index.xml
sed -i -e "s/inherit/all/" lfs-print.fo
- fop.sh lfs-print.fo lfs-print.pdf
+ fop.sh lfs-print.fo $(PRINT_OUTPUT)
nochunks:
- xsltproc --xinclude --nonet --output lfs.html \
+ xsltproc --xinclude --nonet --output $(NOCHUNKS_OUTPUT) \
stylesheets/lfs-nochunks.xsl index.xml
- tidy -config tidy.conf lfs.html || true
+ tidy -config tidy.conf $(NOCHUNKS_OUTPUT) || true
validate:
xmllint --noout --nonet --xinclude --postvalid index.xml