aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorBruce Dubbs <bdubbs@linuxfromscratch.org>2011-10-08 02:12:06 +0000
committerBruce Dubbs <bdubbs@linuxfromscratch.org>2011-10-08 02:12:06 +0000
commitdaed5a3e75d60b08ebf67e8d4287c152908aa764 (patch)
tree76acad3ecc447ba6560c8475b37b745f7ea9d8b7 /Makefile
parent3fffa40201f72e3038066af1f45ca8f97b88b2e7 (diff)
Miror update to bootscripts Makefile.
Add capability in main Makefile to create md5sum file. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9618 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 13 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 7914fe2ee..608690b79 100644
--- a/Makefile
+++ b/Makefile
@@ -103,6 +103,17 @@ wget-list:
$(Q)xsltproc --xinclude --nonet --output $(BASEDIR)/wget-list \
stylesheets/wget-list.xsl chapter03/chapter03.xml
+md5sums:
+ @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
+
+
dump-commands: validxml
@echo "Dumping book commands..."
$(Q)xsltproc --output $(DUMPDIR)/ \
@@ -111,7 +122,7 @@ dump-commands: validxml
validate: maketar validxml
@echo "Validation complete."
-all: lfs nochunks pdf dump-commands
+all: lfs nochunks pdf dump-commands md5sums
.PHONY : all dump-commands lfs nochunks pdf profile-html tmpdir validate \
- validxml wget-list maketar
+ validxml wget-list maketar md5sums