- Timestamp:
- 01/31/2024 07:22:48 PM (8 months ago)
- Branches:
- multilib, xry111/multilib
- Children:
- ac1639c
- Parents:
- f6a43f6 (diff), a4eaba6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
rf6a43f6 r8ccf082a 1 1 # vim:ts=3 2 #BASEDIR = ~/lfs-book3 #SYSDDIR = ~/lfs-systemd4 #DUMPDIR = ~/lfs-commands5 2 RENDERTMP = $(HOME)/tmp 6 3 CHUNK_QUIET = 1 … … 25 22 26 23 ifeq ($(REV), sysv) 27 BASEDIR ?= ~/public_html/lfs-book24 BASEDIR ?= $(HOME)/public_html/lfs-book 28 25 PDF_OUTPUT ?= LFS-BOOK.pdf 29 26 NOCHUNKS_OUTPUT ?= LFS-BOOK.html 30 DUMPDIR ?= ~/lfs-commands27 DUMPDIR ?= $(HOME)/lfs-commands 31 28 else 32 BASEDIR ?= ~/public_html/lfs-systemd29 BASEDIR ?= $(HOME)/public_html/lfs-systemd 33 30 PDF_OUTPUT ?= LFS-SYSD-BOOK.pdf 34 31 NOCHUNKS_OUTPUT ?= LFS-SYSD-BOOK.html 35 DUMPDIR ?= ~/lfs-sysd-commands32 DUMPDIR ?= $(HOME)/lfs-sysd-commands 36 33 endif 37 34 … … 61 58 $(Q)mkdir -p $(BASEDIR)/stylesheets 62 59 $(Q)cp stylesheets/lfs-xsl/*.css $(BASEDIR)/stylesheets 63 $(Q)sed -i 's|../stylesheet|stylesheet|' $(BASEDIR)/index.html 60 $(Q)sed -e 's|../stylesheet|stylesheet|' \ 61 -i $(BASEDIR)/index.html 64 62 65 63 $(Q)mkdir -p $(BASEDIR)/images … … 69 67 $(Q)for filename in `find $(BASEDIR) -name "*.html"`; do \ 70 68 tidy -config tidy.conf $$filename; \ 71 true; \72 69 /bin/bash obfuscate.sh $$filename; \ 73 sed -e "s @text/html@application/xhtml+xml@g" \70 sed -e "s|text/html|application/xhtml+xml|g" \ 74 71 -i $$filename; \ 75 done;72 done 76 73 77 74 $(Q)$(MAKE) --no-print-directory wget-list md5sums … … 112 109 stylesheets/lfs-nochunks.xsl \ 113 110 $(RENDERTMP)/lfs-html.xml 114 # $(RENDERTMP)/lfs-html2.xml115 111 116 112 @echo "Running Tidy..." 117 $(Q)tidy -config tidy.conf $(BASEDIR)/$(NOCHUNKS_OUTPUT) || t rue113 $(Q)tidy -config tidy.conf $(BASEDIR)/$(NOCHUNKS_OUTPUT) || test $$? -le 1 118 114 119 115 @echo "Running obfuscate.sh..." 120 $(Q)bash obfuscate.sh $(BASEDIR)/$(NOCHUNKS_OUTPUT) 121 $(Q)sed -i -e "s@text/html@application/xhtml+xml@g" $(BASEDIR)/$(NOCHUNKS_OUTPUT) 122 $(Q)sed -i -e "s@../wget-list@wget-list@" $(BASEDIR)/$(NOCHUNKS_OUTPUT) 123 $(Q)sed -i -e "s@../md5sums@md5sums@" $(BASEDIR)/$(NOCHUNKS_OUTPUT) 116 $(Q)bash obfuscate.sh $(BASEDIR)/$(NOCHUNKS_OUTPUT) 117 $(Q)sed -e "s|text/html|application/xhtml+xml|g" \ 118 -e "s|../wget-list|wget-list|" \ 119 -e "s|../md5sums|md5sums|" \ 120 -i $(BASEDIR)/$(NOCHUNKS_OUTPUT) 124 121 125 122 @echo "Output at $(BASEDIR)/$(NOCHUNKS_OUTPUT)" … … 140 137 $(Q)xsltproc --nonet \ 141 138 --xinclude \ 142 --output $(RENDERTMP)/lfs-html2.xml \143 139 --stringparam profile.revision $(REV) \ 144 140 --stringparam profile.arch $(ARCH) \ 141 --output $(RENDERTMP)/lfs-html2.xml \ 145 142 stylesheets/lfs-xsl/profile.xsl \ 146 143 index.xml 147 144 148 145 @echo "Validating the book..." 149 $(Q)xmllint --nonet \150 -- noent\151 --postvalid \152 - o$(RENDERTMP)/lfs-full.xml \146 $(Q)xmllint --nonet \ 147 --encode UTF-8 \ 148 --postvalid \ 149 --output $(RENDERTMP)/lfs-full.xml \ 153 150 $(RENDERTMP)/lfs-html2.xml 154 151 … … 172 169 @echo "Generating consolidated wget list at $(BASEDIR)/wget-list ..." 173 170 $(Q)mkdir -p $(BASEDIR) 174 $(Q)xsltproc --xinclude --nonet \ 171 $(Q)xsltproc --nonet \ 172 --xinclude \ 175 173 --output $(BASEDIR)/wget-list \ 176 174 stylesheets/wget-list.xsl \ … … 178 176 179 177 $(BASEDIR)/wget-list-$(REV): stylesheets/wget-list.xsl $(DOWNLOADS_DEP) 180 $(Q)xsltproc --nonet --xinclude \ 178 $(Q)xsltproc --nonet \ 179 --xinclude \ 181 180 --stringparam profile.revision $(REV) \ 182 181 --output $(RENDERTMP)/wget-list.xml \ 183 182 stylesheets/lfs-xsl/profile.xsl \ 184 183 chapter03/chapter03.xml 185 $(Q)xsltproc --xinclude --nonet \ 184 185 $(Q)xsltproc --nonet \ 186 186 --output $(BASEDIR)/wget-list-$(REV) \ 187 187 stylesheets/wget-list.xsl \ … … 193 193 $(Q)mkdir -p $(BASEDIR) 194 194 195 $(Q)xsltproc --nonet --xinclude \ 195 $(Q)xsltproc --nonet \ 196 --xinclude \ 196 197 --stringparam profile.revision $(REV) \ 197 198 --stringparam profile.arch $(ARCH) \ … … 200 201 chapter03/chapter03.xml 201 202 202 $(Q)xsltproc -- xinclude --nonet\203 $(Q)xsltproc --nonet \ 203 204 --output $(BASEDIR)/md5sums \ 204 205 stylesheets/md5sum.xsl \
Note:
See TracChangeset
for help on using the changeset viewer.