Changes in Makefile [47bc996:b6dd23c7]
Legend:
- Unmodified
- Added
- Removed
-
Makefile
r47bc996 rb6dd23c7 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 … … 48 45 $(Q)mkdir -p $(BASEDIR)/stylesheets 49 46 $(Q)cp stylesheets/lfs-xsl/*.css $(BASEDIR)/stylesheets 50 $(Q)sed -i 's|../stylesheet|stylesheet|' $(BASEDIR)/index.html 47 $(Q)sed -e 's|../stylesheet|stylesheet|' \ 48 -i $(BASEDIR)/index.html 51 49 52 50 $(Q)mkdir -p $(BASEDIR)/images … … 56 54 $(Q)for filename in `find $(BASEDIR) -name "*.html"`; do \ 57 55 tidy -config tidy.conf $$filename; \ 58 true; \59 56 /bin/bash obfuscate.sh $$filename; \ 60 sed -e "s @text/html@application/xhtml+xml@g" \57 sed -e "s|text/html|application/xhtml+xml|g" \ 61 58 -i $$filename; \ 62 done;59 done 63 60 64 61 $(Q)$(MAKE) --no-print-directory wget-list md5sums … … 99 96 stylesheets/lfs-nochunks.xsl \ 100 97 $(RENDERTMP)/lfs-html.xml 101 # $(RENDERTMP)/lfs-html2.xml102 98 103 99 @echo "Running Tidy..." 104 $(Q)tidy -config tidy.conf $(BASEDIR)/$(NOCHUNKS_OUTPUT) || t rue100 $(Q)tidy -config tidy.conf $(BASEDIR)/$(NOCHUNKS_OUTPUT) || test $$? -le 1 105 101 106 102 @echo "Running obfuscate.sh..." 107 $(Q)bash obfuscate.sh $(BASEDIR)/$(NOCHUNKS_OUTPUT) 108 $(Q)sed -i -e "s@text/html@application/xhtml+xml@g" $(BASEDIR)/$(NOCHUNKS_OUTPUT) 109 $(Q)sed -i -e "s@../wget-list@wget-list@" $(BASEDIR)/$(NOCHUNKS_OUTPUT) 110 $(Q)sed -i -e "s@../md5sums@md5sums@" $(BASEDIR)/$(NOCHUNKS_OUTPUT) 103 $(Q)bash obfuscate.sh $(BASEDIR)/$(NOCHUNKS_OUTPUT) 104 $(Q)sed -e "s|text/html|application/xhtml+xml|g" \ 105 -e "s|../wget-list|wget-list|" \ 106 -e "s|../md5sums|md5sums|" \ 107 -i $(BASEDIR)/$(NOCHUNKS_OUTPUT) 111 108 112 109 @echo "Output at $(BASEDIR)/$(NOCHUNKS_OUTPUT)" … … 127 124 $(Q)xsltproc --nonet \ 128 125 --xinclude \ 126 --stringparam profile.revision $(REV) \ 129 127 --output $(RENDERTMP)/lfs-html2.xml \ 130 --stringparam profile.revision $(REV) \131 128 stylesheets/lfs-xsl/profile.xsl \ 132 129 index.xml 133 130 134 131 @echo "Validating the book..." 135 $(Q)xmllint --nonet \136 -- noent\137 --postvalid \138 - o$(RENDERTMP)/lfs-full.xml \132 $(Q)xmllint --nonet \ 133 --encode UTF-8 \ 134 --postvalid \ 135 --output $(RENDERTMP)/lfs-full.xml \ 139 136 $(RENDERTMP)/lfs-html2.xml 140 137 … … 158 155 @echo "Generating consolidated wget list at $(BASEDIR)/wget-list ..." 159 156 $(Q)mkdir -p $(BASEDIR) 160 $(Q)xsltproc --xinclude --nonet \ 157 $(Q)xsltproc --nonet \ 158 --xinclude \ 161 159 --output $(BASEDIR)/wget-list \ 162 160 stylesheets/wget-list.xsl \ … … 164 162 165 163 $(BASEDIR)/wget-list-$(REV): stylesheets/wget-list.xsl $(DOWNLOADS_DEP) 166 $(Q)xsltproc --nonet --xinclude \ 164 $(Q)xsltproc --nonet \ 165 --xinclude \ 167 166 --stringparam profile.revision $(REV) \ 168 167 --output $(RENDERTMP)/wget-list.xml \ 169 168 stylesheets/lfs-xsl/profile.xsl \ 170 169 chapter03/chapter03.xml 171 $(Q)xsltproc --xinclude --nonet \ 170 171 $(Q)xsltproc --nonet \ 172 172 --output $(BASEDIR)/wget-list-$(REV) \ 173 173 stylesheets/wget-list.xsl \ … … 179 179 $(Q)mkdir -p $(BASEDIR) 180 180 181 $(Q)xsltproc --nonet --xinclude \ 181 $(Q)xsltproc --nonet \ 182 --xinclude \ 182 183 --stringparam profile.revision $(REV) \ 183 184 --output $(RENDERTMP)/md5sum.xml \ … … 185 186 chapter03/chapter03.xml 186 187 187 $(Q)xsltproc -- xinclude --nonet\188 $(Q)xsltproc --nonet \ 188 189 --output $(BASEDIR)/md5sums \ 189 190 stylesheets/md5sum.xsl \
Note:
See TracChangeset
for help on using the changeset viewer.