Procházet zdrojové kódy

Touch up Makefile

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10267 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Bruce Dubbs před 11 roky
rodič
revize
22bcbddf04
1 změnil soubory, kde provedl 17 přidání a 22 odebrání
  1. 17 22
      Makefile

+ 17 - 22
Makefile

@@ -39,7 +39,7 @@ lfs: validate profile-html
 	  sed -i -e "s@text/html@application/xhtml+xml@g" $$filename; \
 	done;
 
-	$(Q)$(MAKE) wget-list
+	$(Q)$(MAKE) $(BASEDIR)/wget-list $(BASEDIR)/md5sums
 
 pdf: validate
 	@echo "Generating profiled XML for PDF..."
@@ -71,12 +71,10 @@ nochunks: validate profile-html
 	@echo "Running Tidy..."
 	$(Q)tidy -config tidy.conf $(BASEDIR)/$(NOCHUNKS_OUTPUT) || true
 	@echo "Running obfuscate.sh..."
-	$(Q)bash obfuscate.sh $(BASEDIR)/$(NOCHUNKS_OUTPUT)
-	$(Q)sed -i -e "s@text/html@application/xhtml+xml@g"  \
-	  $(BASEDIR)/$(NOCHUNKS_OUTPUT)
-	$(Q)sed -i -e "s@../wget-list@wget-list@"  \
-	  $(BASEDIR)/$(NOCHUNKS_OUTPUT)
-	$(Q)$(MAKE) wget-list
+	$(Q)bash obfuscate.sh                                $(BASEDIR)/$(NOCHUNKS_OUTPUT)
+	$(Q)sed -i -e "s@text/html@application/xhtml+xml@g"  $(BASEDIR)/$(NOCHUNKS_OUTPUT)
+	$(Q)sed -i -e "s@../wget-list@wget-list@"            $(BASEDIR)/$(NOCHUNKS_OUTPUT)
+	$(Q)$(MAKE) $(BASEDIR)/wget-list $(BASEDIR)/md5sums
 
 tmpdir:
 	@echo "Creating and cleaning $(RENDERTMP)"
@@ -97,26 +95,23 @@ validate: tmpdir
 profile-html: validate
 	@echo "Generating profiled XML for XHTML..."
 	$(Q)xsltproc --nonet --stringparam profile.condition html \
-	  --output $(RENDERTMP)/lfs-html.xml stylesheets/lfs-xsl/profile.xsl \
-	  $(RENDERTMP)/lfs-full.xml
+	    --output $(RENDERTMP)/lfs-html.xml stylesheets/lfs-xsl/profile.xsl \
+	    $(RENDERTMP)/lfs-full.xml
 
-wget-list:
+$(BASEDIR)/wget-list: stylesheets/wget-list.xsl chapter03/chapter03.xml packages.ent
 	@echo "Generating wget list..."
 	$(Q)mkdir -p $(BASEDIR)
 	$(Q)xsltproc --xinclude --nonet --output $(BASEDIR)/wget-list \
-	  stylesheets/wget-list.xsl chapter03/chapter03.xml
+	    stylesheets/wget-list.xsl chapter03/chapter03.xml
 
-md5sums:
+$(BASEDIR)/md5sums: stylesheets/wget-list.xsl chapter03/chapter03.xml packages.ent
 	@echo "Generating md5sum file..."
 	$(Q)mkdir -p $(BASEDIR)
 	$(Q)xsltproc --xinclude --nonet --output $(BASEDIR)/md5sums \
-	  stylesheets/md5sum.xsl chapter03/chapter03.xml
-	$(Q)sed -i -e "s/BOOTSCRIPTS-MD5SUM/$(shell md5sum lfs-bootscripts*.tar.bz2 | cut -d' ' -f1)/" \
-      $(BASEDIR)/md5sums
-
-#$(Q)sed -i -e "s/UDEV-MD5SUM/$(shell md5sum udev-config*.tar.bz2 | cut -d' ' -f1)/" \
-#   $(BASEDIR)/md5sums
-
+	    stylesheets/md5sum.xsl chapter03/chapter03.xml
+	$(Q)sed -i -e \
+       "s/BOOTSCRIPTS-MD5SUM/$(shell md5sum lfs-bootscripts*.tar.bz2 | cut -d' ' -f1)/" \
+       $(BASEDIR)/md5sums
 
 dump-commands: validate
 	@echo "Dumping book commands..."
@@ -124,7 +119,7 @@ dump-commands: validate
 	   stylesheets/dump-commands.xsl $(RENDERTMP)/lfs-full.xml
 
 
-all: lfs nochunks pdf dump-commands md5sums
+all: lfs nochunks pdf dump-commands
+
+.PHONY : all dump-commands lfs nochunks pdf profile-html tmpdir validate 
 
-.PHONY : all dump-commands lfs nochunks pdf profile-html tmpdir validate \
-	 validate wget-list maketar md5sums