Legend:
- Unmodified
- Added
- Removed
-
Makefile
r673b0d8 r2ec64b3 1 BASEDIR=~/lfs-book/ 1 BASEDIR=~/lfs-book 2 CHUNK_QUIET=0 3 PDF_OUTPUT=LFS-BOOK.pdf 4 PRINT_OUTPUT=LFS-BOOK-PRINTABLE.pdf 5 NOCHUNKS_OUTPUT=LFS-BOOK.html 2 6 3 7 lfs: 4 xsltproc --xinclude --nonet -stringparam base.dir $(BASEDIR) \ 5 stylesheets/lfs-chunked.xsl index.xml 8 xsltproc --xinclude --nonet -stringparam chunk.quietly $(CHUNK_QUIET) \ 9 -stringparam base.dir $(BASEDIR)/ stylesheets/lfs-chunked.xsl \ 10 index.xml 6 11 7 if [ ! -e $(BASEDIR) stylesheets ]; then \8 mkdir -p $(BASEDIR) stylesheets; \12 if [ ! -e $(BASEDIR)/stylesheets ]; then \ 13 mkdir -p $(BASEDIR)/stylesheets; \ 9 14 fi; 10 cp stylesheets/lfs.css $(BASEDIR) stylesheets15 cp stylesheets/lfs.css $(BASEDIR)/stylesheets 11 16 12 if [ ! -e $(BASEDIR) images ]; then \13 mkdir -p $(BASEDIR) images; \17 if [ ! -e $(BASEDIR)/images ]; then \ 18 mkdir -p $(BASEDIR)/images; \ 14 19 fi; 15 20 cp /usr/share/xml/docbook/xsl-stylesheets-1.65.1/images/*.png \ 16 $(BASEDIR) images17 cd $(BASEDIR) ; sed -i -e "s@../stylesheets@stylesheets@" \21 $(BASEDIR)/images 22 cd $(BASEDIR)/; sed -i -e "s@../stylesheets@stylesheets@" \ 18 23 index.html part1.html part2.html part3.html longindex.html 19 cd $(BASEDIR) ; sed -i -e "s@../images@images@g" \24 cd $(BASEDIR)/; sed -i -e "s@../images@images@g" \ 20 25 index.html part1.html part2.html part3.html longindex.html 26 27 sh goTidy $(BASEDIR)/ 21 28 22 29 pdf: … … 24 31 index.xml 25 32 sed -i -e "s/inherit/all/" lfs.fo 26 fop.sh lfs.fo lfs.pdf 33 fop.sh lfs.fo $(PDF_OUTPUT) 34 35 print: 36 xsltproc --xinclude --nonet --output lfs-print.fo \ 37 stylesheets/lfs-print.xsl index.xml 38 sed -i -e "s/inherit/all/" lfs-print.fo 39 fop.sh lfs-print.fo $(PRINT_OUTPUT) 40 41 nochunks: 42 xsltproc --xinclude --nonet --output $(NOCHUNKS_OUTPUT) \ 43 stylesheets/lfs-nochunks.xsl index.xml 44 tidy -config tidy.conf $(NOCHUNKS_OUTPUT) || true 27 45 28 46 validate:
Note:
See TracChangeset
for help on using the changeset viewer.