Changes in Makefile [28909b72:869909a]
Legend:
- Unmodified
- Added
- Removed
-
Makefile
r28909b72 r869909a 2 2 # By Tushar Teredesai <tushar@linuxfromscratch.org> 3 3 # 2004-01-31 4 # $LastChangedBy$ 5 # $Date$ 4 6 5 7 # Adjust these to suit your installation … … 50 52 blfs: html wget-list 51 53 52 help:53 @echo ""54 @echo "make <parameters> <targets>"55 @echo ""56 @echo "Parameters:"57 @echo " REV=<rev> Build variation of book"58 @echo " Valid values for REV are:"59 @echo " * sysv - Build book for SysV"60 @echo " * systemd - Build book for systemd"61 @echo " Defaults to 'sysv'"62 @echo ""63 @echo " BASEDIR=<dir> Put the output in directory <dir>."64 @echo " Defaults to"65 @echo " 'HOME/public_html/blfs-book' if REV=sysv (or unset)"66 @echo " or to"67 @echo " 'HOME/public_html/blfs-book-systemd' if REV=systemd"68 @echo ""69 @echo " V=<val> If <val> is a non-empty value, all"70 @echo " steps to produce the output is shown."71 @echo " Default is unset."72 @echo ""73 @echo "Targets:"74 @echo " help Show this help text."75 @echo ""76 @echo " blfs Builds targets 'html' and 'wget-list'."77 @echo ""78 @echo " html Builds the HTML pages of the book."79 @echo ""80 @echo " wget-list Produces a list of all packages to download."81 @echo " Output is BASEDIR/wget-list"82 @echo ""83 @echo " nochunks Builds the book as a one-pager. The output"84 @echo " is a large single HTML page containing the"85 @echo " whole book."86 @echo ""87 @echo " Parameter NOCHUNKS_OUTPUT=<filename> controls"88 @echo " the name of the HTML file."89 @echo ""90 @echo " validate Runs validation checks on the XML files."91 @echo ""92 @echo " test-links Runs validation checks on URLs in the book."93 @echo " Produces a file named BASEDIR/bad_urls containing"94 @echo " URLS which are invalid and a BASEDIR/good_urls"95 @echo " containing all valid URLs."96 @echo ""97 98 54 all: blfs nochunks 99 55 world: all blfs-patch-list dump-commands test-links 100 56 101 57 html: $(BASEDIR)/index.html 102 $(BASEDIR)/index.html: $(RENDERTMP)/$(BLFSHTML) version58 $(BASEDIR)/index.html: $(RENDERTMP)/$(BLFSHTML) 103 59 @echo "Generating chunked XHTML files..." 104 60 $(Q)xsltproc --nonet \ … … 115 71 116 72 $(Q)cp stylesheets/lfs-xsl/*.css $(BASEDIR)/stylesheets 117 $(Q)sed -i 's|../stylesheet|stylesheet|' $(BASEDIR)/index.html118 73 119 74 $(Q)if [ ! -e $(BASEDIR)/images ]; then \ … … 130 85 true; \ 131 86 bash obfuscate.sh $$filename; \ 132 sed -i -e " 1,20s@text/html@application/xhtml+xml@g" $$filename; \87 sed -i -e "s@text/html@application/xhtml+xml@g" $$filename; \ 133 88 done; 134 89 135 90 nochunks: $(BASEDIR)/$(NOCHUNKS_OUTPUT) 136 $(BASEDIR)/$(NOCHUNKS_OUTPUT): $(RENDERTMP)/$(BLFSHTML) version91 $(BASEDIR)/$(NOCHUNKS_OUTPUT): $(RENDERTMP)/$(BLFSHTML) 137 92 @echo "Generating non-chunked XHTML file..." 138 93 $(Q)xsltproc --nonet \ … … 145 100 $(Q)tidy -config tidy.conf $(BASEDIR)/$(NOCHUNKS_OUTPUT) || true 146 101 $(Q)bash obfuscate.sh $(BASEDIR)/$(NOCHUNKS_OUTPUT) 147 $(Q)sed -i -e " 1,20s@text/html@application/xhtml+xml@g" $(BASEDIR)/$(NOCHUNKS_OUTPUT)102 $(Q)sed -i -e "s@text/html@application/xhtml+xml@g" $(BASEDIR)/$(NOCHUNKS_OUTPUT) 148 103 149 104 tmpdir: $(RENDERTMP) … … 157 112 158 113 validate: $(RENDERTMP)/$(BLFSFULL) 159 $(RENDERTMP)/$(BLFSFULL): general.ent packages.ent $(ALLXML) $(ALLXSL) version114 $(RENDERTMP)/$(BLFSFULL): general.ent packages.ent $(ALLXML) $(ALLXSL) 160 115 $(Q)[ -d $(RENDERTMP) ] || mkdir -p $(RENDERTMP) 161 116 … … 176 131 177 132 profile-html: $(RENDERTMP)/$(BLFSHTML) 178 $(RENDERTMP)/$(BLFSHTML): $(RENDERTMP)/$(BLFSFULL) version133 $(RENDERTMP)/$(BLFSHTML): $(RENDERTMP)/$(BLFSFULL) 179 134 @echo "Generating profiled XML for XHTML..." 180 135 $(Q)xsltproc --nonet \ … … 189 144 blfs-patches.sh > blfs-patch-list 190 145 191 blfs-patches.sh: $(RENDERTMP)/$(BLFSFULL) version146 blfs-patches.sh: $(RENDERTMP)/$(BLFSFULL) 192 147 @echo "Generating blfs patch script..." 193 148 $(Q)xsltproc --nonet \ … … 197 152 198 153 wget-list: $(BASEDIR)/wget-list 199 $(BASEDIR)/wget-list: $(RENDERTMP)/$(BLFSFULL) version154 $(BASEDIR)/wget-list: $(RENDERTMP)/$(BLFSFULL) 200 155 @echo "Generating wget list for $(REV) at $(BASEDIR)/wget-list ..." 201 156 $(Q)mkdir -p $(BASEDIR) … … 206 161 207 162 test-links: $(BASEDIR)/test-links 208 $(BASEDIR)/test-links: $(RENDERTMP)/$(BLFSFULL) version163 $(BASEDIR)/test-links: $(RENDERTMP)/$(BLFSFULL) 209 164 @echo "Generating test-links file..." 210 165 $(Q)mkdir -p $(BASEDIR) … … 258 213 259 214 dump-commands: $(DUMPDIR) 260 $(DUMPDIR): $(RENDERTMP)/$(BLFSFULL) version215 $(DUMPDIR): $(RENDERTMP)/$(BLFSFULL) 261 216 @echo "Dumping book commands..." 262 217 $(Q)xsltproc --output $(DUMPDIR)/ \ … … 267 222 .PHONY: blfs all world html nochunks tmpdir clean \ 268 223 validate profile-html blfs-patch-list wget-list test-links \ 269 dump-commands bootscripts systemd-units version 270 271 version: 272 $(Q)./git-version.sh 224 dump-commands bootscripts systemd-units 225 226
Note:
See TracChangeset
for help on using the changeset viewer.