aboutsummaryrefslogtreecommitdiff
path: root/mesalib/bin/version.mk
diff options
context:
space:
mode:
Diffstat (limited to 'mesalib/bin/version.mk')
-rw-r--r--mesalib/bin/version.mk17
1 files changed, 17 insertions, 0 deletions
diff --git a/mesalib/bin/version.mk b/mesalib/bin/version.mk
new file mode 100644
index 000000000..ab20d79da
--- /dev/null
+++ b/mesalib/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)