Changeset 8e2f3658


Ignore:
Timestamp:
07/07/2007 03:53:24 PM (17 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 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, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
cfb2ae1
Parents:
17622a3
Message:

Added a TMPDIR envar and a tmpdir target.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r17622a3 r8e2f3658  
    88BASEDIR= $(HOME)/public_html/blfs-book-xsl
    99DUMPDIR= $(HOME)/blfs-commands
     10TMPDIR= $(HOME)tmp
    1011CHUNK_QUIET=1
    1112ROOT_ID=""
     
    2324        $(Q)xsltproc --nonet -stringparam chunk.quietly $(CHUNK_QUIET) \
    2425          -stringparam rootid $(ROOT_ID) -stringparam base.dir $(BASEDIR)/ \
    25           stylesheets/blfs-chunked.xsl /tmp/blfs-html.xml
     26          stylesheets/blfs-chunked.xsl $(TMPDIR)/blfs-html.xml
    2627
    2728        @echo "Copying CSS code and images..."
     
    4849        @echo "Generating profiled XML for PDF..."
    4950        $(Q)xsltproc --nonet --stringparam profile.condition pdf \
    50           --output /tmp/blfs-pdf.xml stylesheets/lfs-xsl/profile.xsl \
    51           /tmp/blfs-full.xml
     51          --output $(TMPDIR)/blfs-pdf.xml stylesheets/lfs-xsl/profile.xsl \
     52          $(TMPDIR)/blfs-full.xml
    5253
    5354        @echo "Generating FO file..."
    5455        $(Q)xsltproc --nonet -stringparam rootid $(ROOT_ID) \
    55           --output /tmp/blfs-pdf.fo stylesheets/blfs-pdf.xsl /tmp/blfs-pdf.xml
    56         $(Q)sed -i -e 's/span="inherit"/span="all"/' /tmp/blfs-pdf.fo
     56          --output $(TMPDIR)/blfs-pdf.fo stylesheets/blfs-pdf.xsl $(TMPDIR)/blfs-pdf.xml
     57        $(Q)sed -i -e 's/span="inherit"/span="all"/' $(TMPDIR)/blfs-pdf.fo
    5758
    5859        @echo "Generating PDF file..."
     
    6061          mkdir -p $(BASEDIR); \
    6162        fi;
    62         $(Q)fop /tmp/blfs-pdf.fo $(BASEDIR)/$(PDF_OUTPUT)
     63        $(Q)fop $(TMPDIR)/blfs-pdf.fo $(BASEDIR)/$(PDF_OUTPUT)
    6364
    6465nochunks: validxml profile-html
     
    6667        $(Q)xsltproc --nonet -stringparam rootid $(ROOT_ID) \
    6768          --output $(BASEDIR)/$(NOCHUNKS_OUTPUT) \
    68           stylesheets/blfs-nochunks.xsl /tmp/blfs-html.xml
     69          stylesheets/blfs-nochunks.xsl $(TMPDIR)/blfs-html.xml
    6970
    7071        @echo "Running Tidy..."
     
    7576          $(BASEDIR)/$(NOCHUNKS_OUTPUT)
    7677
    77 validxml:
     78tmpdir:
     79        @echo "Creating and cleaning $(TMPDIR)
     80        $(Q)[ -d $(TMPDIR) ] || mkdir -p $(TMPDIR)
     81        $(Q)rm -f $(TMPDIR)/blfs-{full,html,pdf,fo,}.xml
     82        $(Q)rm -f $(TMPDIR)/blfs-{patch-list,patches}
     83
     84validxml: tmpdir
    7885        @echo "Validating the book..."
    7986        $(Q)xmllint --nonet --noent --xinclude --postvalid \
    80           -o /tmp/blfs-full.xml index.xml
     87          -o ~$(TMPDIR)/blfs-full.xml index.xml
    8188
    8289profile-html: validxml
    8390        @echo "Generating profiled XML for XHTML..."
    8491        $(Q)xsltproc --nonet --stringparam profile.condition html \
    85           --output /tmp/blfs-html.xml stylesheets/lfs-xsl/profile.xsl \
    86           /tmp/blfs-full.xml
     92          --output $(TMPDIR)/blfs-html.xml stylesheets/lfs-xsl/profile.xsl \
     93          $(TMPDIR)/blfs-full.xml
    8794
    8895blfs-patch-list: validxml
    8996        @echo "Generating blfs-patch-list..."
    90         $(Q)xsltproc --nonet --output /tmp/blfs-patch-list \
    91           stylesheets/patcheslist.xsl /tmp/blfs-full.xml
    92         $(Q)sed -e "s|^.*/||" /tmp/blfs-patch-list > /tmp/blfs-patches
    93         $(Q)sort /tmp/blfs-patches > blfs-patch-list
     97        $(Q)xsltproc --nonet --output $(TMPDIR)/blfs-patch-list \
     98          stylesheets/patcheslist.xsl $(TMPDIR)/blfs-full.xml
     99        $(Q)sed -e "s|^.*/||" $(TMPDIR)/blfs-patch-list > $(TMPDIR)/blfs-patches
     100        $(Q)sort $(TMPDIR)/blfs-patches > blfs-patch-list
    94101
    95102wget-list: validxml
     
    97104        $(Q)mkdir -p $(BASEDIR)
    98105        $(Q)xsltproc --nonet --output $(BASEDIR)/wget-list \
    99           stylesheets/wget-list.xsl /tmp/blfs-full.xml
     106          stylesheets/wget-list.xsl $(TMPDIR)/blfs-full.xml
    100107
    101108test-links: validxml
     
    104111        $(Q)xsltproc --nonet --stringparam list_mode full \
    105112          --output $(BASEDIR)/test-links stylesheets/wget-list.xsl \
    106           /tmp/blfs-full.xml
     113          $(TMPDIR)/blfs-full.xml
    107114
    108115        @echo "Checking URLs, first pass..."
     
    126133        @echo "Dumping book commands..."
    127134        $(Q)xsltproc --output $(DUMPDIR)/ \
    128            stylesheets/dump-commands.xsl /tmp/blfs-full.xml
     135           stylesheets/dump-commands.xsl $(TMPDIR)/blfs-full.xml
    129136
    130137validate:
Note: See TracChangeset for help on using the changeset viewer.