- Timestamp:
- 07/06/2007 05:54:18 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, 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:
- 6dd1a9f
- Parents:
- 0e6d3c0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
r0e6d3c0 r05d60ce 6 6 NOCHUNKS_OUTPUT=LFS-BOOK.html 7 7 8 ifdef V 9 Q = 10 else 11 Q = @ 12 endif 13 8 14 lfs: validxml profile-html 9 15 @echo "Generating chunked XHTML files..." 10 @xsltproc --nonet -stringparam chunk.quietly $(CHUNK_QUIET) \16 $(Q)xsltproc --nonet -stringparam chunk.quietly $(CHUNK_QUIET) \ 11 17 -stringparam rootid $(ROOT_ID) -stringparam base.dir $(BASEDIR)/ \ 12 18 stylesheets/lfs-chunked.xsl /tmp/lfs-html.xml 13 19 14 20 @echo "Copying CSS code and images..." 15 @if [ ! -e $(BASEDIR)/stylesheets ]; then \21 $(Q)if [ ! -e $(BASEDIR)/stylesheets ]; then \ 16 22 mkdir -p $(BASEDIR)/stylesheets; \ 17 23 fi; 18 @cp stylesheets/lfs-xsl/*.css $(BASEDIR)/stylesheets19 @if [ ! -e $(BASEDIR)/images ]; then \24 $(Q)cp stylesheets/lfs-xsl/*.css $(BASEDIR)/stylesheets 25 $(Q)if [ ! -e $(BASEDIR)/images ]; then \ 20 26 mkdir -p $(BASEDIR)/images; \ 21 27 fi; 22 @cp images/*.png $(BASEDIR)/images23 @cd $(BASEDIR)/; sed -i -e "s@../stylesheets@stylesheets@g" *.html24 @cd $(BASEDIR)/; sed -i -e "s@../images@images@g" *.html28 $(Q)cp images/*.png $(BASEDIR)/images 29 $(Q)cd $(BASEDIR)/; sed -i -e "s@../stylesheets@stylesheets@g" *.html 30 $(Q)cd $(BASEDIR)/; sed -i -e "s@../images@images@g" *.html 25 31 26 @echo "Running Tidy ..."27 @for filename in `find $(BASEDIR) -name "*.html"`; do \32 @echo "Running Tidy and obfuscate.sh..." 33 $(Q)for filename in `find $(BASEDIR) -name "*.html"`; do \ 28 34 tidy -config tidy.conf $$filename; \ 29 35 true; \ … … 32 38 done; 33 39 34 @$(MAKE) wget-list40 $(Q)$(MAKE) wget-list 35 41 36 42 pdf: validxml 37 43 @echo "Generating profiled XML for PDF..." 38 @xsltproc --nonet --stringparam profile.condition pdf \44 $(Q)xsltproc --nonet --stringparam profile.condition pdf \ 39 45 --output /tmp/lfs-pdf.xml stylesheets/lfs-xsl/profile.xsl \ 40 46 /tmp/lfs-full.xml 41 47 42 48 @echo "Generating FO file..." 43 @xsltproc --nonet -stringparam rootid $(ROOT_ID) \49 $(Q)xsltproc --nonet -stringparam rootid $(ROOT_ID) \ 44 50 --output /tmp//lfs-pdf.fo stylesheets/lfs-pdf.xsl /tmp/lfs-pdf.xml 45 @sed -i -e 's/span="inherit"/span="all"/' /tmp/lfs-pdf.fo51 $(Q)sed -i -e 's/span="inherit"/span="all"/' /tmp/lfs-pdf.fo 46 52 47 53 @echo "Generating PDF file..." 48 @fop /tmp/lfs-pdf.fo $(BASEDIR)/$(PDF_OUTPUT)54 $(Q)fop /tmp/lfs-pdf.fo $(BASEDIR)/$(PDF_OUTPUT) 49 55 50 56 nochunks: validxml profile-html 51 57 @echo "Generating non chunked XHTML file..." 52 @xsltproc --nonet -stringparam profile.condition html \58 $(Q)xsltproc --nonet -stringparam profile.condition html \ 53 59 -stringparam rootid $(ROOT_ID) --output $(BASEDIR)/$(NOCHUNKS_OUTPUT) \ 54 60 stylesheets/lfs-nochunks.xsl /tmp/lfs-html.xml 55 61 56 62 @echo "Running Tidy..." 57 @tidy -config tidy.conf $(BASEDIR)/$(NOCHUNKS_OUTPUT) || true 58 @sh obfuscate.sh $(BASEDIR)/$(NOCHUNKS_OUTPUT) 59 @sed -i -e "s@text/html@application/xhtml+xml@g" \ 63 $(Q)tidy -config tidy.conf $(BASEDIR)/$(NOCHUNKS_OUTPUT) || true 64 @echo "Running obfuscate.sh..." 65 $(Q)sh obfuscate.sh $(BASEDIR)/$(NOCHUNKS_OUTPUT) 66 $(Q)sed -i -e "s@text/html@application/xhtml+xml@g" \ 60 67 $(BASEDIR)/$(NOCHUNKS_OUTPUT) 61 68 62 69 validxml: 63 70 @echo "Validating the book..." 64 @xmllint --nonet --noent --xinclude --postvalid \71 $(Q)xmllint --nonet --noent --xinclude --postvalid \ 65 72 -o /tmp/lfs-full.xml index.xml 66 73 67 74 profile-html: validxml 68 75 @echo "Generating profiled XML for XHTML..." 69 @xsltproc --nonet --stringparam profile.condition html \76 $(Q)xsltproc --nonet --stringparam profile.condition html \ 70 77 --output /tmp/lfs-html.xml stylesheets/lfs-xsl/profile.xsl \ 71 78 /tmp/lfs-full.xml … … 73 80 wget-list: 74 81 @echo "Generating wget list..." 75 @mkdir -p $(BASEDIR)76 @xsltproc --xinclude --nonet --output $(BASEDIR)/wget-list \82 $(Q)mkdir -p $(BASEDIR) 83 $(Q)xsltproc --xinclude --nonet --output $(BASEDIR)/wget-list \ 77 84 stylesheets/wget-list.xsl chapter03/chapter03.xml 78 85 79 dump-commands: 86 dump-commands: validxml 80 87 @echo "Dumping book commands..." 81 @xsltproc --xinclude --nonet--output $(DUMPDIR)/ \82 stylesheets/dump-commands.xsl index.xml88 $(Q)xsltproc --output $(DUMPDIR)/ \ 89 stylesheets/dump-commands.xsl /tmp/lfs-full.xml 83 90 84 91 validate: 85 92 @echo "Validating the book..." 86 @xmllint --noout --nonet --xinclude --postvalid index.xml93 $(Q)xmllint --noout --nonet --xinclude --postvalid index.xml 87 94 88 95 all: lfs nochunks pdf dump-commands
Note:
See TracChangeset
for help on using the changeset viewer.