Changes in Makefile [c858ba4e:b6dd23c7]
Legend:
- Unmodified
- Added
- Removed
-
Makefile
rc858ba4e rb6dd23c7 1 #BASEDIR = ~/lfs-book 2 #SYSDDIR = ~/lfs-systemd 3 #DUMPDIR = ~/lfs-commands 1 # vim:ts=3 4 2 RENDERTMP = $(HOME)/tmp 5 3 CHUNK_QUIET = 1 … … 24 22 25 23 ifeq ($(REV), sysv) 26 BASEDIR ?= ~/lfs-book24 BASEDIR ?= $(HOME)/public_html/lfs-book 27 25 PDF_OUTPUT ?= LFS-BOOK.pdf 28 26 NOCHUNKS_OUTPUT ?= LFS-BOOK.html 29 DUMPDIR ?= ~/lfs-commands27 DUMPDIR ?= $(HOME)/lfs-commands 30 28 else 31 BASEDIR ?= ~/lfs-systemd29 BASEDIR ?= $(HOME)/public_html/lfs-systemd 32 30 PDF_OUTPUT ?= LFS-SYSD-BOOK.pdf 33 31 NOCHUNKS_OUTPUT ?= LFS-SYSD-BOOK.html 34 DUMPDIR ?= ~/lfs-sysd-commands32 DUMPDIR ?= $(HOME)/lfs-sysd-commands 35 33 endif 36 34 … … 47 45 $(Q)mkdir -p $(BASEDIR)/stylesheets 48 46 $(Q)cp stylesheets/lfs-xsl/*.css $(BASEDIR)/stylesheets 49 $(Q)sed -i 's|../stylesheet|stylesheet|' $(BASEDIR)/index.html 47 $(Q)sed -e 's|../stylesheet|stylesheet|' \ 48 -i $(BASEDIR)/index.html 50 49 51 50 $(Q)mkdir -p $(BASEDIR)/images … … 55 54 $(Q)for filename in `find $(BASEDIR) -name "*.html"`; do \ 56 55 tidy -config tidy.conf $$filename; \ 57 true; \58 56 /bin/bash obfuscate.sh $$filename; \ 59 sed -e "s@text/html@application/xhtml+xml@g" \ 60 -e "s/\xa9/\©/ " \ 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 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) 111 $(Q)sed -i -e "s@\xa9@\©@"$(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) 112 108 113 109 @echo "Output at $(BASEDIR)/$(NOCHUNKS_OUTPUT)" … … 128 124 $(Q)xsltproc --nonet \ 129 125 --xinclude \ 126 --stringparam profile.revision $(REV) \ 130 127 --output $(RENDERTMP)/lfs-html2.xml \ 131 --stringparam profile.revision $(REV) \132 128 stylesheets/lfs-xsl/profile.xsl \ 133 129 index.xml 134 130 135 131 @echo "Validating the book..." 136 $(Q)xmllint --nonet \137 -- noent\138 --postvalid \139 - o$(RENDERTMP)/lfs-full.xml \132 $(Q)xmllint --nonet \ 133 --encode UTF-8 \ 134 --postvalid \ 135 --output $(RENDERTMP)/lfs-full.xml \ 140 136 $(RENDERTMP)/lfs-html2.xml 141 137 … … 152 148 $(RENDERTMP)/lfs-full.xml 153 149 150 DOWNLOADS_DEP = chapter03/packages.xml chapter03/patches.xml \ 151 packages.ent patches.ent general.ent 152 154 153 wget-list: $(BASEDIR)/wget-list $(BASEDIR)/wget-list-$(REV) 155 $(BASEDIR)/wget-list: stylesheets/wget-list.xsl chapter03/chapter03.xml \ 156 packages.ent patches.ent general.ent 154 $(BASEDIR)/wget-list: stylesheets/wget-list.xsl $(DOWNLOADS_DEP) 157 155 @echo "Generating consolidated wget list at $(BASEDIR)/wget-list ..." 158 156 $(Q)mkdir -p $(BASEDIR) 159 $(Q)xsltproc --xinclude --nonet \ 157 $(Q)xsltproc --nonet \ 158 --xinclude \ 160 159 --output $(BASEDIR)/wget-list \ 161 160 stylesheets/wget-list.xsl \ 162 161 chapter03/chapter03.xml 163 162 164 $(BASEDIR)/wget-list-$(REV): stylesheets/wget-list.xsl \ 165 chapter03/chapter03.xml \ 166 packages.ent patches.ent general.ent 167 $(Q)xsltproc --nonet --xinclude \ 163 $(BASEDIR)/wget-list-$(REV): stylesheets/wget-list.xsl $(DOWNLOADS_DEP) 164 $(Q)xsltproc --nonet \ 165 --xinclude \ 168 166 --stringparam profile.revision $(REV) \ 169 167 --output $(RENDERTMP)/wget-list.xml \ 170 168 stylesheets/lfs-xsl/profile.xsl \ 171 169 chapter03/chapter03.xml 172 $(Q)xsltproc --xinclude --nonet \ 170 171 $(Q)xsltproc --nonet \ 173 172 --output $(BASEDIR)/wget-list-$(REV) \ 174 173 stylesheets/wget-list.xsl \ … … 176 175 177 176 md5sums: $(BASEDIR)/md5sums 178 $(BASEDIR)/md5sums: stylesheets/wget-list.xsl chapter03/chapter03.xml \ 179 packages.ent patches.ent 177 $(BASEDIR)/md5sums: stylesheets/wget-list.xsl $(DOWNLOADS_DEP) 180 178 @echo "Generating consolidated md5sum file at $(BASEDIR)/md5sums ..." 181 179 $(Q)mkdir -p $(BASEDIR) 182 180 183 $(Q)xsltproc --nonet --xinclude \ 181 $(Q)xsltproc --nonet \ 182 --xinclude \ 184 183 --stringparam profile.revision $(REV) \ 185 184 --output $(RENDERTMP)/md5sum.xml \ … … 187 186 chapter03/chapter03.xml 188 187 189 $(Q)xsltproc -- xinclude --nonet\188 $(Q)xsltproc --nonet \ 190 189 --output $(BASEDIR)/md5sums \ 191 190 stylesheets/md5sum.xsl \
Note:
See TracChangeset
for help on using the changeset viewer.