Changeset 00cc7ce for Makefile


Ignore:
Timestamp:
08/31/2004 09:42:58 PM (20 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
6.0
Children:
7f49e10
Parents:
3be2393
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r3be2393 r00cc7ce  
    1 BASEDIR=~/lfs-book
    2 CHUNK_QUIET=0
    3 PDF_OUTPUT=LFS-BOOK.pdf
    4 NOCHUNKS_OUTPUT=LFS-BOOK.html
    5 XSLROOTDIR=/usr/share/xml/docbook/xsl-stylesheets-current
     1BASEDIR=/home/macana/tmp/test-book-LFS/
    62
    73lfs:
    8         xsltproc --xinclude --nonet -stringparam chunk.quietly $(CHUNK_QUIET) \
    9           -stringparam base.dir $(BASEDIR)/ stylesheets/lfs-chunked.xsl \
    10           index.xml
     4        xsltproc --xinclude --nonet --stringparam base.dir $(BASEDIR) \
     5          stylesheets/lfs-chunked.xsl index.xml
    116
    12         if [ ! -e $(BASEDIR)/stylesheets ]; then \
    13           mkdir -p $(BASEDIR)/stylesheets; \
    14         fi;
    15         cp stylesheets/*.css $(BASEDIR)/stylesheets
     7        mkdir -p $(BASEDIR)stylesheets && \
     8        cp stylesheets/*.css $(BASEDIR)stylesheets
    169
    17         if [ ! -e $(BASEDIR)/images ]; then \
    18           mkdir -p $(BASEDIR)/images; \
    19         fi;
    20         cp $(XSLROOTDIR)/images/*.png \
    21           $(BASEDIR)/images
    22         cd $(BASEDIR)/; sed -i -e "s@../stylesheets@stylesheets@g" \
     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" \
    2315          *.html
    24         cd $(BASEDIR)/; sed -i -e "s@../images@images@g" \
     16        cd $(BASEDIR); sed -i -e "s@../images@images@g" \
    2517          *.html
    2618
    27         sh goTidy $(BASEDIR)/
    28 
    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
     19        cd $(BASEDIR); goTidy
    4120
    4221pdf:
    43         xsltproc --xinclude --nonet --stringparam profile.condition print \
    44                 --output $(BASEDIR)/lfs-pdf.xml stylesheets/lfs-profile.xsl index.xml
    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
     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
    5028
    5129nochunks:
    52         xsltproc --xinclude --nonet --output $(BASEDIR)/$(NOCHUNKS_OUTPUT) \
     30        xsltproc --xinclude --nonet --output $(BASEDIR)lfs-nochunk.html \
    5331          stylesheets/lfs-nochunks.xsl index.xml
    54         tidy -config tidy.conf $(BASEDIR)/$(NOCHUNKS_OUTPUT) || true
     32        tidy -config tidy.conf $(BASEDIR)lfs-nochunk.html || true
    5533
    5634validate:
    5735        xmllint --noout --nonet --xinclude --postvalid index.xml
     36 
    5837
Note: See TracChangeset for help on using the changeset viewer.