source: Makefile@ 00cc7ce

6.0
Last change on this file since 00cc7ce was 00cc7ce, checked in by Manuel Canales Esparcia <manuel@…>, 20 years ago

Line wrap in screen blocks to fit the line length in PDF output.

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

  • Property mode set to 100644
File size: 1.2 KB
Line 
1BASEDIR=/home/macana/tmp/test-book-LFS/
2
3lfs:
4 xsltproc --xinclude --nonet --stringparam base.dir $(BASEDIR) \
5 stylesheets/lfs-chunked.xsl index.xml
6
7 mkdir -p $(BASEDIR)stylesheets && \
8 cp stylesheets/*.css $(BASEDIR)stylesheets
9
10 mkdir -p $(BASEDIR)images && \
11 cp /usr/share/xml/docbook/xsl-stylesheets-1.65.1/images/*.png \
12 $(BASEDIR)images
13
14 cd $(BASEDIR); sed -i -e "s@../stylesheets@stylesheets@g" \
15 *.html
16 cd $(BASEDIR); sed -i -e "s@../images@images@g" \
17 *.html
18
19 cd $(BASEDIR); goTidy
20
21pdf:
22 xsltproc --xinclude --nonet --stringparam profile.condition print --output $(BASEDIR)lfs-pdf.xml \
23 stylesheets/lfs-profile.xsl index.xml
24 xsltproc --nonet --output $(BASEDIR)lfs-pdf.fo stylesheets/lfs-pdf.xsl $(BASEDIR)lfs-pdf.xml
25 cd $(BASEDIR); sed -i -e "s@inherit@all@" lfs-pdf.fo
26 cd $(BASEDIR); JAVA_HOME=/opt/java/jre1.3.1_02 FOP_HOME=/home/macana/tmp/fop \
27 /home/macana/tmp/fop/fop.sh lfs-pdf.fo lfs-pdf.pdf
28
29nochunks:
30 xsltproc --xinclude --nonet --output $(BASEDIR)lfs-nochunk.html \
31 stylesheets/lfs-nochunks.xsl index.xml
32 tidy -config tidy.conf $(BASEDIR)lfs-nochunk.html || true
33
34validate:
35 xmllint --noout --nonet --xinclude --postvalid index.xml
36
37
Note: See TracBrowser for help on using the repository browser.