From 00994ac08cb84937ca1e35b7a556d8924229bacb Mon Sep 17 00:00:00 2001 From: Dan Nicholson Date: Wed, 30 Apr 2008 15:06:00 -0700 Subject: autoconf: Scrape the version from configs/default Added the make script version.mk to print the various version numbers from configs/default. This is used to substitute the version in autoconf rather than duplicating it in both places. --- bin/version.mk | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 bin/version.mk (limited to 'bin') diff --git a/bin/version.mk b/bin/version.mk new file mode 100755 index 0000000000..ab20d79dae --- /dev/null +++ b/bin/version.mk @@ -0,0 +1,17 @@ +#!/usr/bin/make -sf +# Print the various Mesa version fields. This is mostly used to add the +# version to configure. + +# This reflects that this script is usually called from the toplevel +TOP = . + +include $(TOP)/configs/default + +version: + @echo $(MESA_VERSION) +major: + @echo $(MESA_MAJOR) +minor: + @echo $(MESA_MINOR) +tiny: + @echo $(MESA_TINY) -- cgit v1.2.3