summaryrefslogtreecommitdiff
path: root/version.make
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2014-07-17 16:50:40 -0700
committerBen Longbons <b.r.longbons@gmail.com>2014-07-17 23:35:14 -0700
commit25070b355b8a0394c1fbd9cf82c44752b5a8b8c3 (patch)
tree5e8edf1e5e3f58a8b11b1fcdd2fa851b2322df35 /version.make
parent3b0b6deecf156916a9fb68dda9ca4b8a47d65aab (diff)
downloadtmwa-25070b355b8a0394c1fbd9cf82c44752b5a8b8c3.tar.gz
tmwa-25070b355b8a0394c1fbd9cf82c44752b5a8b8c3.tar.bz2
tmwa-25070b355b8a0394c1fbd9cf82c44752b5a8b8c3.tar.xz
tmwa-25070b355b8a0394c1fbd9cf82c44752b5a8b8c3.zip
Add dir annoyances
Diffstat (limited to 'version.make')
-rw-r--r--version.make11
1 files changed, 11 insertions, 0 deletions
diff --git a/version.make b/version.make
index f7d5511..73ecc83 100644
--- a/version.make
+++ b/version.make
@@ -1,4 +1,7 @@
+ABI_VERSION := 0
+
# These lines are automatically replaced in tarballs generated by 'make dist'
+# Note so you stop forgetting: export-subst attribute can't do tag-relative
VERSION_FULL := $(shell git --git-dir=${SRC_DIR}/.git describe --tags HEAD)
VERSION_HASH := $(shell git --git-dir=${SRC_DIR}/.git rev-parse HEAD)
@@ -40,8 +43,16 @@ VENDOR_SOURCE := https://github.com/themanaworld/tmwa
# Convenience
VERSION_STRING := TMWA ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH} dev${VERSION_DEVEL} +${VENDOR_POINT} (${VENDOR_NAME})
+VERSION_DOTS := ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}.${VERSION_DEVEL}.${VENDOR_POINT}
+
+# Shared libraries
+SO_SHORT := so.${ABI_VERSION}
+SO_LONG := ${SO_SHORT}.${VERSION_DOTS}
+# and thanks for all the fish
version:
@echo version '${VERSION_STRING}'
@echo based on commit ${VERSION_FULL} aka ${VERSION_HASH}
@echo source ${VENDOR_SOURCE}
+ @echo abi version ${ABI_VERSION}
+ @echo 'lib so -> ${SO_SHORT} -> ${SO_LONG}'