cvs commit: LFS/BOOK Makefile

matthew at linuxfromscratch.org matthew at linuxfromscratch.org
Sun May 23 14:24:22 PDT 2004


matthew     04/05/23 15:24:22

  Modified:    BOOK     Tag: b5_1 Makefile
  Log:
  Makefile changes to integrate with render-lfs-book.sh
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.2.2.3   +11 -6     LFS/BOOK/Makefile
  
  Index: Makefile
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/Makefile,v
  retrieving revision 1.2.2.2
  retrieving revision 1.2.2.3
  diff -u -r1.2.2.2 -r1.2.2.3
  --- Makefile	16 May 2004 10:45:28 -0000	1.2.2.2
  +++ Makefile	23 May 2004 21:24:21 -0000	1.2.2.3
  @@ -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 @@
   	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
  
  
  



More information about the lfs-book mailing list