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