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
RevLine 
[00cc7ce]1BASEDIR=/home/macana/tmp/test-book-LFS/
[287ea55]2
3lfs:
[00cc7ce]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" \
[3001a42]15 *.html
[00cc7ce]16 cd $(BASEDIR); sed -i -e "s@../images@images@g" \
[3001a42]17 *.html
[287ea55]18
[00cc7ce]19 cd $(BASEDIR); goTidy
[287ea55]20
[3e46693]21pdf:
[00cc7ce]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
[91364a5]28
29nochunks:
[00cc7ce]30 xsltproc --xinclude --nonet --output $(BASEDIR)lfs-nochunk.html \
[91364a5]31 stylesheets/lfs-nochunks.xsl index.xml
[00cc7ce]32 tidy -config tidy.conf $(BASEDIR)lfs-nochunk.html || true
[91364a5]33
[287ea55]34validate:
35 xmllint --noout --nonet --xinclude --postvalid index.xml
[00cc7ce]36
[3e46693]37
Note: See TracBrowser for help on using the repository browser.