Changeset e9e9b47


Ignore:
Timestamp:
04/13/2004 04:23:43 PM (20 years ago)
Author:
Larry Lawrence <larry@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.0, 6.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, v5_1, v5_1-pre1, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
bc6304e
Parents:
eff3826
Message:

add TeX option to Makefile

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1985 af4574ff-66df-0310-9fd7-8a98e5e911e0

Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    reff3826 re9e9b47  
    77JADE = openjade
    88DOCBOOK = /usr/share/sgml/docbook/dsssl-stylesheets-1.78
     9BASEDIR= $(HOME)/public_html/blfs-book-xsl/
     10TEXBASEDIR= $(HOME)/public_html/blfs-book-tex
    911
    1012SRCDIR = $(PWD)
     
    1517                exit 1 ; \
    1618                fi
    17         @echo "Generating HTML Version of BLFS Book..."
     19        @echo "Generating HTML Version of BLFS Book with $(JADE)..."
    1820        @echo "  OUTPUTDIR = $(OUTPUTDIR)"
    1921        @$(INSTALL) -d $(OUTPUTDIR)
     
    2123                connect basicnet server content x kde gnome xsoft \
    2224                multimedia pst preface appendices other
    23         @cd $(OUTPUTDIR) && $(JADE) -t sgml -d $(DOCBOOK)/html/lfs.dsl \
     25        @cd $(OUTPUTDIR) && $(JADE) -t sgml -d $(DOCBOOK)/html/blfs.dsl \
    2426                $(DOCBOOK)/dtds/decls/xml.dcl $(SRCDIR)/index.xml
    2527
    26 BASEDIR=~/blfs-book/
    2728
    2829blfs:
     30        @if [ -z $(BASEDIR) ]; then \
     31                echo "Envar BASEDIR is not set!" ; \
     32                exit 1 ; \
     33                fi
     34        @echo "Generating XHTML Version of BLFS Book with xsltproc..."
     35        @echo "  BASEDIR = $(BASEDIR)"
     36        @$(INSTALL) -d $(BASEDIR)
    2937        xsltproc --xinclude --nonet -stringparam base.dir $(BASEDIR) \
    3038          stylesheets/blfs-chunked.xsl index.xml
     
    4654
    4755pdf:
    48         xsltproc --xinclude --nonet --output lfs.fo
     56        xsltproc --xinclude --nonet --output blfs.fo
    4957        stylesheets/blfs-pdf.xsl \
    5058          index.xml
    51         fop.sh lfs.fo lfs.pdf
     59        fop.sh blfs.fo blfs.pdf
    5260
     61tex:
     62        @if [ -z $(TEXBASEDIR) ]; then \
     63                echo "Envar TEXBASEDIR is not set!" ; \
     64                exit 1 ; \
     65                fi
     66        @echo "Generating TeX Version of BLFS Book with xsltproc..."
     67        @echo "  TEXBASEDIR = $(TEXBASEDIR)"
     68        @$(INSTALL) -d $(TEXBASEDIR)
     69
     70# Using profiles in book source to exclude parts of the book from TeX
     71# i.e. Changelog
     72        xsltproc --nonet --output $(TEXBASEDIR)/index.xml \
     73        --stringparam "profile.role" "book" \
     74        http://docbook.sourceforge.net/release/xsl/current/profiling/profile.xsl \
     75        index.xml
     76        @cd $(TEXBASEDIR) && xsltproc --nonet -o blfs-book.tex \
     77        $(SRCDIR)/stylesheets/blfs-tex.xsl index.xml
Note: See TracChangeset for help on using the changeset viewer.