Changeset 8e2f3658
- Timestamp:
- 07/07/2007 03:53:24 PM (16 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 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, ken/inkscape-core-mods, krejzi/svn, lazarus, nosym, perl-modules, plabs/python-mods, qt5new, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/soup3, xry111/test-20220226
- Children:
- cfb2ae1
- Parents:
- 17622a3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
r17622a3 r8e2f3658 8 8 BASEDIR= $(HOME)/public_html/blfs-book-xsl 9 9 DUMPDIR= $(HOME)/blfs-commands 10 TMPDIR= $(HOME)tmp 10 11 CHUNK_QUIET=1 11 12 ROOT_ID="" … … 23 24 $(Q)xsltproc --nonet -stringparam chunk.quietly $(CHUNK_QUIET) \ 24 25 -stringparam rootid $(ROOT_ID) -stringparam base.dir $(BASEDIR)/ \ 25 stylesheets/blfs-chunked.xsl /tmp/blfs-html.xml26 stylesheets/blfs-chunked.xsl $(TMPDIR)/blfs-html.xml 26 27 27 28 @echo "Copying CSS code and images..." … … 48 49 @echo "Generating profiled XML for PDF..." 49 50 $(Q)xsltproc --nonet --stringparam profile.condition pdf \ 50 --output /tmp/blfs-pdf.xml stylesheets/lfs-xsl/profile.xsl \51 /tmp/blfs-full.xml51 --output $(TMPDIR)/blfs-pdf.xml stylesheets/lfs-xsl/profile.xsl \ 52 $(TMPDIR)/blfs-full.xml 52 53 53 54 @echo "Generating FO file..." 54 55 $(Q)xsltproc --nonet -stringparam rootid $(ROOT_ID) \ 55 --output /tmp/blfs-pdf.fo stylesheets/blfs-pdf.xsl /tmp/blfs-pdf.xml56 $(Q)sed -i -e 's/span="inherit"/span="all"/' /tmp/blfs-pdf.fo56 --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 57 58 58 59 @echo "Generating PDF file..." … … 60 61 mkdir -p $(BASEDIR); \ 61 62 fi; 62 $(Q)fop /tmp/blfs-pdf.fo $(BASEDIR)/$(PDF_OUTPUT)63 $(Q)fop $(TMPDIR)/blfs-pdf.fo $(BASEDIR)/$(PDF_OUTPUT) 63 64 64 65 nochunks: validxml profile-html … … 66 67 $(Q)xsltproc --nonet -stringparam rootid $(ROOT_ID) \ 67 68 --output $(BASEDIR)/$(NOCHUNKS_OUTPUT) \ 68 stylesheets/blfs-nochunks.xsl /tmp/blfs-html.xml69 stylesheets/blfs-nochunks.xsl $(TMPDIR)/blfs-html.xml 69 70 70 71 @echo "Running Tidy..." … … 75 76 $(BASEDIR)/$(NOCHUNKS_OUTPUT) 76 77 77 validxml: 78 tmpdir: 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 84 validxml: tmpdir 78 85 @echo "Validating the book..." 79 86 $(Q)xmllint --nonet --noent --xinclude --postvalid \ 80 -o /tmp/blfs-full.xml index.xml87 -o ~$(TMPDIR)/blfs-full.xml index.xml 81 88 82 89 profile-html: validxml 83 90 @echo "Generating profiled XML for XHTML..." 84 91 $(Q)xsltproc --nonet --stringparam profile.condition html \ 85 --output /tmp/blfs-html.xml stylesheets/lfs-xsl/profile.xsl \86 /tmp/blfs-full.xml92 --output $(TMPDIR)/blfs-html.xml stylesheets/lfs-xsl/profile.xsl \ 93 $(TMPDIR)/blfs-full.xml 87 94 88 95 blfs-patch-list: validxml 89 96 @echo "Generating blfs-patch-list..." 90 $(Q)xsltproc --nonet --output /tmp/blfs-patch-list \91 stylesheets/patcheslist.xsl /tmp/blfs-full.xml92 $(Q)sed -e "s|^.*/||" /tmp/blfs-patch-list > /tmp/blfs-patches93 $(Q)sort /tmp/blfs-patches > blfs-patch-list97 $(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 94 101 95 102 wget-list: validxml … … 97 104 $(Q)mkdir -p $(BASEDIR) 98 105 $(Q)xsltproc --nonet --output $(BASEDIR)/wget-list \ 99 stylesheets/wget-list.xsl /tmp/blfs-full.xml106 stylesheets/wget-list.xsl $(TMPDIR)/blfs-full.xml 100 107 101 108 test-links: validxml … … 104 111 $(Q)xsltproc --nonet --stringparam list_mode full \ 105 112 --output $(BASEDIR)/test-links stylesheets/wget-list.xsl \ 106 /tmp/blfs-full.xml113 $(TMPDIR)/blfs-full.xml 107 114 108 115 @echo "Checking URLs, first pass..." … … 126 133 @echo "Dumping book commands..." 127 134 $(Q)xsltproc --output $(DUMPDIR)/ \ 128 stylesheets/dump-commands.xsl /tmp/blfs-full.xml135 stylesheets/dump-commands.xsl $(TMPDIR)/blfs-full.xml 129 136 130 137 validate:
Note:
See TracChangeset
for help on using the changeset viewer.