Changeset 106dc42
- Timestamp:
- 07/07/2007 08:46:44 PM (17 years ago)
- 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, 12.2, 12.2-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/loongarch-12.2, xry111/mips64el, xry111/multilib, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 7fbc15c
- Parents:
- 5e45ca3b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
r5e45ca3b r106dc42 1 1 BASEDIR=~/lfs-book 2 2 DUMPDIR=~/lfs-commands 3 RENDERTMP= $(HOME)/tmp 3 4 CHUNK_QUIET=1 4 5 ROOT_ID="" … … 16 17 $(Q)xsltproc --nonet -stringparam chunk.quietly $(CHUNK_QUIET) \ 17 18 -stringparam rootid $(ROOT_ID) -stringparam base.dir $(BASEDIR)/ \ 18 stylesheets/lfs-chunked.xsl /tmp/lfs-html.xml19 stylesheets/lfs-chunked.xsl $(RENDERTMP)/lfs-html.xml 19 20 20 21 @echo "Copying CSS code and images..." … … 43 44 @echo "Generating profiled XML for PDF..." 44 45 $(Q)xsltproc --nonet --stringparam profile.condition pdf \ 45 --output /tmp/lfs-pdf.xml stylesheets/lfs-xsl/profile.xsl \46 /tmp/lfs-full.xml46 --output $(RENDERTMP)/lfs-pdf.xml stylesheets/lfs-xsl/profile.xsl \ 47 $(RENDERTMP)/lfs-full.xml 47 48 48 49 @echo "Generating FO file..." 49 50 $(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 52 54 53 55 @echo "Generating PDF file..." … … 55 57 mkdir -p $(BASEDIR); \ 56 58 fi; 57 $(Q)fop /tmp/lfs-pdf.fo $(BASEDIR)/$(PDF_OUTPUT)59 $(Q)fop $(RENDERTMP)/lfs-pdf.fo $(BASEDIR)/$(PDF_OUTPUT) 58 60 59 61 nochunks: validxml profile-html … … 61 63 $(Q)xsltproc --nonet -stringparam rootid $(ROOT_ID) \ 62 64 --output $(BASEDIR)/$(NOCHUNKS_OUTPUT) \ 63 stylesheets/lfs-nochunks.xsl /tmp/lfs-html.xml65 stylesheets/lfs-nochunks.xsl $(RENDERTMP)/lfs-html.xml 64 66 65 67 @echo "Running Tidy..." … … 70 72 $(BASEDIR)/$(NOCHUNKS_OUTPUT) 71 73 72 validxml: 74 tmpdir: 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 80 validxml: tmpdir 73 81 @echo "Validating the book..." 74 82 $(Q)xmllint --nonet --noent --xinclude --postvalid \ 75 -o /tmp/lfs-full.xml index.xml83 -o $(RENDERTMP)/lfs-full.xml index.xml 76 84 77 85 profile-html: validxml 78 86 @echo "Generating profiled XML for XHTML..." 79 87 $(Q)xsltproc --nonet --stringparam profile.condition html \ 80 --output /tmp/lfs-html.xml stylesheets/lfs-xsl/profile.xsl \81 /tmp/lfs-full.xml88 --output $(RENDERTMP)/lfs-html.xml stylesheets/lfs-xsl/profile.xsl \ 89 $(RENDERTMP)/lfs-full.xml 82 90 83 91 wget-list: … … 90 98 @echo "Dumping book commands..." 91 99 $(Q)xsltproc --output $(DUMPDIR)/ \ 92 stylesheets/dump-commands.xsl /tmp/lfs-full.xml100 stylesheets/dump-commands.xsl $(RENDERTMP)/lfs-full.xml 93 101 94 102 validate: … … 98 106 all: lfs nochunks pdf dump-commands 99 107 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.