diff options
author | Bikal Lem <gbikal+git@gmail.com> | 2021-11-15 13:09:30 +0000 |
---|---|---|
committer | Bikal Lem <gbikal+git@gmail.com> | 2021-11-15 13:09:30 +0000 |
commit | c0b43df28a982747e081343f23289357ab4615db (patch) | |
tree | 0b4ef14573b0842dd13791140a79390a3030c47e /Makefile | |
parent | b7159e46bc002c7a174e184d94cfa61552f92e69 (diff) | |
download | liburing-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-- | Makefile | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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 |