summaryrefslogtreecommitdiff
path: root/Makeconfig
diff options
context:
space:
mode:
Diffstat (limited to 'Makeconfig')
-rw-r--r--Makeconfig7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makeconfig b/Makeconfig
index 3273675d11..e0522ab815 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -468,6 +468,13 @@ cross-compiling := yes
else
cross-compiling := no
endif
+
+# Figure out the version numbers from version.h.
+$(common-objpfx)version.mk: $(..)version.h
+ sed -n -e 's/^.*RELEASE.*\"\([^"]*\)";$$/release=\1/p' \
+ -e 's/^.*VERSION.*\"\([^"]*\)";$$/version=\1/p' \
+ < $< > $@-new
+ mv -f $@-new $@
endif # Makeconfig not yet included