- Timestamp:
- 05/24/2016 09:24:59 PM (8 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, 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:
- 77ab7f3
- Parents:
- 11ebea6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
r11ebea6 r1118b17 1 1 BASEDIR = ~/lfs-book 2 SYSDDIR = ~/lfs-systemd 2 3 DUMPDIR = ~/lfs-commands 3 4 RENDERTMP = $(HOME)/tmp … … 14 15 endif 15 16 16 lfs: validate profile-html 17 sysv: validate profile-html 18 $(Q)xsltproc --nonet \ 19 --output $(RENDERTMP)/lfs-html2.xml \ 20 --stringparam profile.revision sysv \ 21 stylesheets/lfs-xsl/profile.xsl \ 22 $(RENDERTMP)/lfs-html.xml 23 17 24 @echo "Generating chunked XHTML files..." 18 $(Q)xsltproc --nonet -stringparam chunk.quietly $(CHUNK_QUIET) \ 19 -stringparam rootid "$(ROOT_ID)" -stringparam base.dir $(BASEDIR)/ \ 20 stylesheets/lfs-chunked.xsl $(RENDERTMP)/lfs-html.xml 25 $(Q)xsltproc --nonet \ 26 --stringparam chunk.quietly $(CHUNK_QUIET) \ 27 --stringparam rootid "$(ROOT_ID)" \ 28 --stringparam base.dir $(BASEDIR)/ \ 29 stylesheets/lfs-chunked.xsl \ 30 $(RENDERTMP)/lfs-html2.xml 21 31 22 32 @echo "Copying CSS code and images..." … … 38 48 true; \ 39 49 /bin/bash obfuscate.sh $$filename; \ 40 sed -i -e "s@text/html@application/xhtml+xml@g" $$filename; \ 50 sed -e "s@text/html@application/xhtml+xml@g" \ 51 -e "s/\xa9/\©/ " \ 52 -i $$filename; \ 41 53 done; 42 54 43 55 $(Q)$(MAKE) $(BASEDIR)/wget-list $(BASEDIR)/md5sums 56 57 systemd: validated profile-html 58 $(Q)xsltproc --nonet \ 59 --output $(RENDERTMP)/lfs-html2.xml \ 60 --stringparam profile.revision systemd \ 61 stylesheets/lfs-xsl/profile.xsl \ 62 $(RENDERTMP)/lfs-html.xml 63 64 @echo "Generating chunked XHTML files..." 65 $(Q)xsltproc --nonet \ 66 --stringparam chunk.quietly $(CHUNK_QUIET) \ 67 --stringparam rootid "$(ROOT_ID)" \ 68 --stringparam base.dir $(SYSDDIR)/ \ 69 stylesheets/lfs-chunked.xsl \ 70 $(RENDERTMP)/lfs-html2.xml 71 72 @echo "Copying CSS code and images..." 73 $(Q)if [ ! -e $(SYSDDIR)/stylesheets ]; then \ 74 mkdir -p $(SYSDDIR)/stylesheets; \ 75 fi; 76 $(Q)cp stylesheets/lfs-xsl/*.css $(SYSDDIR)/stylesheets 77 78 $(Q)if [ ! -e $(SYSDDIR)/images ]; then \ 79 mkdir -p $(SYSDDIR)/images; \ 80 fi; 81 $(Q)cp images/*.png $(SYSDDIR)/images 82 83 @echo "Running Tidy and obfuscate.sh..." 84 $(Q)for filename in `find $(SYSDDIR) -name "*.html"`; do \ 85 tidy -config tidy.conf $$filename; \ 86 true; \ 87 /bin/bash obfuscate.sh $$filename; \ 88 sed -e "s@text/html@application/xhtml+xml@g" \ 89 -e "s/\xa9/\©/ " \ 90 -i $$filename; \ 91 done; 92 93 # $(Q)$(MAKE) $(SYSDDIR)/wget-list $(SYSDDIR)/md5sumsd 44 94 45 95 pdf: validate … … 95 145 @echo "Validation complete." 96 146 97 profile-html: validate 147 validated: tmpdir 148 @echo "Validating the book..." 149 $(Q)xmllint --nonet --noent --xinclude --postvalid \ 150 -o $(RENDERTMP)/lfs-full.xml indexd.xml 151 @echo "Validation complete." 152 153 profile-html: 98 154 @echo "Generating profiled XML for XHTML..." 99 155 $(Q)xsltproc --nonet --stringparam profile.condition html \ … … 118 174 $(BASEDIR)/md5sums 119 175 176 md5sumsd: $(SYSDDIR)/md5sumsd 177 $(SYSDDIR)/md5sumsd: stylesheets/wget-list.xsl chapter03/chapter03.xml packages.ent patches.ent 178 @echo "Generating md5sum file..." 179 $(Q)mkdir -p $(SYSDDIR) 180 $(Q)xsltproc --xinclude --nonet --output $(SYSDDIR)/md5sums \ 181 stylesheets/md5sum.xsl chapter03/chapter03.xml 182 120 183 dump-commands: validate 121 184 @echo "Dumping book commands..."
Note:
See TracChangeset
for help on using the changeset viewer.