Changeset adf0149
- Timestamp:
- 07/07/2007 04:12:44 PM (17 years ago)
- 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:
- 2182f2c
- Parents:
- cfb2ae1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
rcfb2ae1 radf0149 8 8 BASEDIR= $(HOME)/public_html/blfs-book-xsl 9 9 DUMPDIR= $(HOME)/blfs-commands 10 TMPDIR= $(HOME)/tmp10 RENDERTMP= $(HOME)/tmp 11 11 CHUNK_QUIET=1 12 12 ROOT_ID="" … … 24 24 $(Q)xsltproc --nonet -stringparam chunk.quietly $(CHUNK_QUIET) \ 25 25 -stringparam rootid $(ROOT_ID) -stringparam base.dir $(BASEDIR)/ \ 26 stylesheets/blfs-chunked.xsl $( TMPDIR)/blfs-html.xml26 stylesheets/blfs-chunked.xsl $(RENDERTMP)/blfs-html.xml 27 27 28 28 @echo "Copying CSS code and images..." … … 49 49 @echo "Generating profiled XML for PDF..." 50 50 $(Q)xsltproc --nonet --stringparam profile.condition pdf \ 51 --output $( TMPDIR)/blfs-pdf.xml stylesheets/lfs-xsl/profile.xsl \52 $( TMPDIR)/blfs-full.xml51 --output $(RENDERTMP)/blfs-pdf.xml stylesheets/lfs-xsl/profile.xsl \ 52 $(RENDERTMP)/blfs-full.xml 53 53 54 54 @echo "Generating FO file..." 55 55 $(Q)xsltproc --nonet -stringparam rootid $(ROOT_ID) \ 56 --output $( TMPDIR)/blfs-pdf.fo stylesheets/blfs-pdf.xsl $(TMPDIR)/blfs-pdf.xml57 $(Q)sed -i -e 's/span="inherit"/span="all"/' $( TMPDIR)/blfs-pdf.fo56 --output $(RENDERTMP)/blfs-pdf.fo stylesheets/blfs-pdf.xsl $(RENDERTMP)/blfs-pdf.xml 57 $(Q)sed -i -e 's/span="inherit"/span="all"/' $(RENDERTMP)/blfs-pdf.fo 58 58 59 59 @echo "Generating PDF file..." … … 61 61 mkdir -p $(BASEDIR); \ 62 62 fi; 63 $(Q)fop $( TMPDIR)/blfs-pdf.fo $(BASEDIR)/$(PDF_OUTPUT)63 $(Q)fop $(RENDERTMP)/blfs-pdf.fo $(BASEDIR)/$(PDF_OUTPUT) 64 64 65 65 nochunks: validxml profile-html … … 67 67 $(Q)xsltproc --nonet -stringparam rootid $(ROOT_ID) \ 68 68 --output $(BASEDIR)/$(NOCHUNKS_OUTPUT) \ 69 stylesheets/blfs-nochunks.xsl $( TMPDIR)/blfs-html.xml69 stylesheets/blfs-nochunks.xsl $(RENDERTMP)/blfs-html.xml 70 70 71 71 @echo "Running Tidy..." … … 77 77 78 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,}.xml82 $(Q)rm -f $( TMPDIR)/blfs-{patch-list,patches}79 @echo "Creating and cleaning $(RENDERTMP) 80 $(Q)[ -d $(RENDERTMP) ] || mkdir -p $(RENDERTMP) 81 $(Q)rm -f $(RENDERTMP)/blfs-{full,html,pdf,fo,}.xml 82 $(Q)rm -f $(RENDERTMP)/blfs-{patch-list,patches} 83 83 84 84 validxml: tmpdir 85 85 @echo "Validating the book..." 86 86 $(Q)xmllint --nonet --noent --xinclude --postvalid \ 87 -o ~$( TMPDIR)/blfs-full.xml index.xml87 -o ~$(RENDERTMP)/blfs-full.xml index.xml 88 88 89 89 profile-html: validxml 90 90 @echo "Generating profiled XML for XHTML..." 91 91 $(Q)xsltproc --nonet --stringparam profile.condition html \ 92 --output $( TMPDIR)/blfs-html.xml stylesheets/lfs-xsl/profile.xsl \93 $( TMPDIR)/blfs-full.xml92 --output $(RENDERTMP)/blfs-html.xml stylesheets/lfs-xsl/profile.xsl \ 93 $(RENDERTMP)/blfs-full.xml 94 94 95 95 blfs-patch-list: validxml 96 96 @echo "Generating blfs-patch-list..." 97 $(Q)xsltproc --nonet --output $( TMPDIR)/blfs-patch-list \98 stylesheets/patcheslist.xsl $( TMPDIR)/blfs-full.xml99 $(Q)sed -e "s|^.*/||" $( TMPDIR)/blfs-patch-list > $(TMPDIR)/blfs-patches100 $(Q)sort $( TMPDIR)/blfs-patches > blfs-patch-list97 $(Q)xsltproc --nonet --output $(RENDERTMP)/blfs-patch-list \ 98 stylesheets/patcheslist.xsl $(RENDERTMP)/blfs-full.xml 99 $(Q)sed -e "s|^.*/||" $(RENDERTMP)/blfs-patch-list > $(RENDERTMP)/blfs-patches 100 $(Q)sort $(RENDERTMP)/blfs-patches > blfs-patch-list 101 101 102 102 wget-list: validxml … … 104 104 $(Q)mkdir -p $(BASEDIR) 105 105 $(Q)xsltproc --nonet --output $(BASEDIR)/wget-list \ 106 stylesheets/wget-list.xsl $( TMPDIR)/blfs-full.xml106 stylesheets/wget-list.xsl $(RENDERTMP)/blfs-full.xml 107 107 108 108 test-links: validxml … … 111 111 $(Q)xsltproc --nonet --stringparam list_mode full \ 112 112 --output $(BASEDIR)/test-links stylesheets/wget-list.xsl \ 113 $( TMPDIR)/blfs-full.xml113 $(RENDERTMP)/blfs-full.xml 114 114 115 115 @echo "Checking URLs, first pass..." … … 133 133 @echo "Dumping book commands..." 134 134 $(Q)xsltproc --output $(DUMPDIR)/ \ 135 stylesheets/dump-commands.xsl $( TMPDIR)/blfs-full.xml135 stylesheets/dump-commands.xsl $(RENDERTMP)/blfs-full.xml 136 136 137 137 validate:
Note:
See TracChangeset
for help on using the changeset viewer.