source: Makefile@ 3e46693

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

Makefile updates -- renamed "pdf" to "previous_pdf" target and renamed "print" target to "pdf"

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

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