aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBikal Lem <gbikal+git@gmail.com>2021-11-15 13:09:30 +0000
committerBikal Lem <gbikal+git@gmail.com>2021-11-15 13:09:30 +0000
commitc0b43df28a982747e081343f23289357ab4615db (patch)
tree0b4ef14573b0842dd13791140a79390a3030c47e /Makefile
parentb7159e46bc002c7a174e184d94cfa61552f92e69 (diff)
downloadliburing-c0b43df28a982747e081343f23289357ab4615db.tar.gz
src/Makefile: use VERSION variable consistently
src/Makefile defines incorrect 'liburing.so' version, i.e 2.1 as opposed to 2.2. This commit makes src/Makefile use correct version defined in liburing.spec. Along the way we refactor the use of common variables into Makefile.common and include it into both src/Makefile and Makefile. Signed-off-by: Bikal Lem <gbikal+git@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 2 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 5d9c4dc..28c0fd8 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,5 @@
-NAME=liburing
-SPECFILE=$(NAME).spec
-VERSION=$(shell awk '/Version:/ { print $$2 }' $(SPECFILE))
-TAG = $(NAME)-$(VERSION)
+include Makefile.common
+
RPMBUILD=$(shell `which rpmbuild >&/dev/null` && echo "rpmbuild" || echo "rpm")
INSTALL=install