aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@mengyan1223.wang>2021-04-07 01:01:01 +0800
committerXi Ruoyao <xry111@mengyan1223.wang>2021-04-07 01:01:01 +0800
commit594838099780fe0b9e7301143468fbfc6157f4c9 (patch)
tree9a63628aec29cf15b21aa1413dea828dcc5b5562 /Makefile
parent275f313442348c7932fd2c0656ca871c5eb7374e (diff)
automatically generate version info from git HEAD
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index c28733ce3..83064f376 100644
--- a/Makefile
+++ b/Makefile
@@ -119,7 +119,7 @@ tmpdir:
$(Q)rm -f $(RENDERTMP)/*md5sum*
$(Q)rm -f $(RENDERTMP)/*pdf.fo
-validate: tmpdir
+validate: tmpdir version
@echo "Processing bootscripts..."
$(Q)bash process-scripts.sh
@@ -187,6 +187,9 @@ $(BASEDIR)/md5sums: stylesheets/wget-list.xsl chapter03/chapter03.xml \
"s/BOOTSCRIPTS-MD5SUM/$(shell md5sum lfs-bootscripts*.tar.xz | cut -d' ' -f1)/" \
$(BASEDIR)/md5sums
+version:
+ $(Q)./git-version.sh
+
#dump-commands: validate
# @echo "Dumping book commands..."
# $(Q)xsltproc --nonet \
@@ -204,5 +207,5 @@ $(BASEDIR)/md5sums: stylesheets/wget-list.xsl chapter03/chapter03.xml \
all: book nochunks pdf # dump-commands
-.PHONY : all book dump-commands nochunks pdf profile-html tmpdir validate md5sums wget-list
+.PHONY : all book dump-commands nochunks pdf profile-html tmpdir validate md5sums wget-list version