Changeset 106dc42 for Makefile


Ignore:
Timestamp:
07/07/2007 08:46:44 PM (17 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
7fbc15c
Parents:
5e45ca3b
Message:

Using RENDERTMP envar instead of hardcoded /tmp dir.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r5e45ca3b r106dc42  
    11BASEDIR=~/lfs-book
    22DUMPDIR=~/lfs-commands
     3RENDERTMP= $(HOME)/tmp
    34CHUNK_QUIET=1
    45ROOT_ID=""
     
    1617        $(Q)xsltproc --nonet -stringparam chunk.quietly $(CHUNK_QUIET) \
    1718          -stringparam rootid $(ROOT_ID) -stringparam base.dir $(BASEDIR)/ \
    18           stylesheets/lfs-chunked.xsl /tmp/lfs-html.xml
     19          stylesheets/lfs-chunked.xsl $(RENDERTMP)/lfs-html.xml
    1920
    2021        @echo "Copying CSS code and images..."
     
    4344        @echo "Generating profiled XML for PDF..."
    4445        $(Q)xsltproc --nonet --stringparam profile.condition pdf \
    45           --output /tmp/lfs-pdf.xml stylesheets/lfs-xsl/profile.xsl \
    46           /tmp/lfs-full.xml
     46          --output $(RENDERTMP)/lfs-pdf.xml stylesheets/lfs-xsl/profile.xsl \
     47          $(RENDERTMP)/lfs-full.xml
    4748
    4849        @echo "Generating FO file..."
    4950        $(Q)xsltproc --nonet -stringparam rootid $(ROOT_ID) \
    50           --output /tmp//lfs-pdf.fo stylesheets/lfs-pdf.xsl /tmp/lfs-pdf.xml
    51         $(Q)sed -i -e 's/span="inherit"/span="all"/' /tmp/lfs-pdf.fo
     51          --output $(RENDERTMP)/lfs-pdf.fo stylesheets/lfs-pdf.xsl \
     52          $(RENDERTMP)/lfs-pdf.xml
     53        $(Q)sed -i -e 's/span="inherit"/span="all"/' $(RENDERTMP)/lfs-pdf.fo
    5254
    5355        @echo "Generating PDF file..."
     
    5557          mkdir -p $(BASEDIR); \
    5658        fi;
    57         $(Q)fop /tmp/lfs-pdf.fo $(BASEDIR)/$(PDF_OUTPUT)
     59        $(Q)fop $(RENDERTMP)/lfs-pdf.fo $(BASEDIR)/$(PDF_OUTPUT)
    5860
    5961nochunks: validxml profile-html
     
    6163        $(Q)xsltproc --nonet -stringparam rootid $(ROOT_ID) \
    6264          --output $(BASEDIR)/$(NOCHUNKS_OUTPUT) \
    63           stylesheets/lfs-nochunks.xsl /tmp/lfs-html.xml
     65          stylesheets/lfs-nochunks.xsl $(RENDERTMP)/lfs-html.xml
    6466
    6567        @echo "Running Tidy..."
     
    7072          $(BASEDIR)/$(NOCHUNKS_OUTPUT)
    7173
    72 validxml:
     74tmpdir:
     75        @echo "Creating and cleaning $(RENDERTMP)"
     76        $(Q)[ -d $(RENDERTMP) ] || mkdir -p $(RENDERTMP)
     77        $(Q)rm -f $(RENDERTMP)/lfs-{full,html,pdf}.xml
     78        $(Q)rm -f $(RENDERTMP)/lfs-pdf.fo
     79
     80validxml: tmpdir
    7381        @echo "Validating the book..."
    7482        $(Q)xmllint --nonet --noent --xinclude --postvalid \
    75           -o /tmp/lfs-full.xml index.xml
     83          -o $(RENDERTMP)/lfs-full.xml index.xml
    7684
    7785profile-html: validxml
    7886        @echo "Generating profiled XML for XHTML..."
    7987        $(Q)xsltproc --nonet --stringparam profile.condition html \
    80           --output /tmp/lfs-html.xml stylesheets/lfs-xsl/profile.xsl \
    81           /tmp/lfs-full.xml
     88          --output $(RENDERTMP)/lfs-html.xml stylesheets/lfs-xsl/profile.xsl \
     89          $(RENDERTMP)/lfs-full.xml
    8290
    8391wget-list:
     
    9098        @echo "Dumping book commands..."
    9199        $(Q)xsltproc --output $(DUMPDIR)/ \
    92            stylesheets/dump-commands.xsl /tmp/lfs-full.xml
     100           stylesheets/dump-commands.xsl $(RENDERTMP)/lfs-full.xml
    93101
    94102validate:
     
    98106all: lfs nochunks pdf dump-commands
    99107
    100 .PHONY : all dump-commands lfs nochunks pdf profile-html validate validxml wget-list
     108.PHONY : all dump-commands lfs nochunks pdf profile-html tmpdir validate \
     109         validxml wget-list
Note: See TracChangeset for help on using the changeset viewer.