source: Makefile@ e4ce4ea

6.0
Last change on this file since e4ce4ea was 3001a42, checked in by Gerard Beekmans <gerard@…>, 20 years ago

Removed index-pdf.xml -- use index.xml for both now. Moved acknowledgements to appendixa

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/testing/BOOK@4068 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 1.8 KB
RevLine 
[4f16f6b]1BASEDIR=~/lfs-book
[b711e1d]2CHUNK_QUIET=0
3PDF_OUTPUT=LFS-BOOK.pdf
4NOCHUNKS_OUTPUT=LFS-BOOK.html
[a942c0a]5XSLROOTDIR=/usr/share/xml/docbook/xsl-stylesheets-current
[287ea55]6
7lfs:
[b711e1d]8 xsltproc --xinclude --nonet -stringparam chunk.quietly $(CHUNK_QUIET) \
9 -stringparam base.dir $(BASEDIR)/ stylesheets/lfs-chunked.xsl \
10 index.xml
[287ea55]11
[411ceb8]12 if [ ! -e $(BASEDIR)/stylesheets ]; then \
13 mkdir -p $(BASEDIR)/stylesheets; \
[287ea55]14 fi;
[b711e1d]15 cp stylesheets/*.css $(BASEDIR)/stylesheets
[287ea55]16
[411ceb8]17 if [ ! -e $(BASEDIR)/images ]; then \
18 mkdir -p $(BASEDIR)/images; \
[287ea55]19 fi;
[a942c0a]20 cp $(XSLROOTDIR)/images/*.png \
[411ceb8]21 $(BASEDIR)/images
[b711e1d]22 cd $(BASEDIR)/; sed -i -e "s@../stylesheets@stylesheets@g" \
[3001a42]23 *.html
[411ceb8]24 cd $(BASEDIR)/; sed -i -e "s@../images@images@g" \
[3001a42]25 *.html
[287ea55]26
[91364a5]27 sh goTidy $(BASEDIR)/
28
[3e46693]29#
30# This is the old "pdf" target. The old "print" target below has been
31# renamed to "pdf" and will be used. This commented out previous_pdf
32# target can be removed eventually. It'll remain here for a bit for
33# historical reasons
34#
35#previous_pdf:
36# xsltproc --xinclude --nonet --output $(BASEDIR)/lfs.fo stylesheets/lfs-pdf.xsl \
37# index.xml
38# sed -i -e "s/inherit/all/" $(BASEDIR)/lfs.fo
39# fop.sh $(BASEDIR)/lfs.fo $(BASEDIR)/$(PDF_OUTPUT)
40# rm lfs.fo
[287ea55]41
[3e46693]42pdf:
[0869f1e]43 xsltproc --xinclude --nonet --stringparam profile.condition print \
[3001a42]44 --output $(BASEDIR)/lfs-pdf.xml stylesheets/lfs-profile.xsl index.xml
[8c33312]45 xsltproc --nonet --output $(BASEDIR)/lfs-pdf.fo stylesheets/lfs-pdf.xsl \
46 $(BASEDIR)/lfs-pdf.xml
47 sed -i -e "s/inherit/all/" $(BASEDIR)/lfs-pdf.fo
48 fop.sh $(BASEDIR)/lfs-pdf.fo $(BASEDIR)/$(PDF_OUTPUT)
49 rm $(BASEDIR)/lfs-pdf.xml $(BASEDIR)/lfs-pdf.fo
[91364a5]50
51nochunks:
[d75063f]52 xsltproc --xinclude --nonet --output $(BASEDIR)/$(NOCHUNKS_OUTPUT) \
[91364a5]53 stylesheets/lfs-nochunks.xsl index.xml
[d75063f]54 tidy -config tidy.conf $(BASEDIR)/$(NOCHUNKS_OUTPUT) || true
[91364a5]55
[287ea55]56validate:
57 xmllint --noout --nonet --xinclude --postvalid index.xml
[3e46693]58
Note: See TracBrowser for help on using the repository browser.