aboutsummaryrefslogtreecommitdiff
path: root/Makefile.common
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 05:10:09 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 05:10:09 +0000
commitb8f7e9523bba270978886a4377312b927e024620 (patch)
treeebe9c872e416346e4b333e5062da32401c8e0a73 /Makefile.common
parentd53db6851ea17b2d219d084e1afc683b8b62b105 (diff)
parent1d27ff1934c5c4292dc00fba7f7f8ae411ed42f5 (diff)
downloadliburing-android14-mainline-sdkext-release.tar.gz
Change-Id: Ifb21a10d7ab7ff789b497736136922bb8d723b0e
Diffstat (limited to 'Makefile.common')
-rw-r--r--Makefile.common6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile.common b/Makefile.common
new file mode 100644
index 0000000..27fc233
--- /dev/null
+++ b/Makefile.common
@@ -0,0 +1,6 @@
+TOP := $(dir $(CURDIR)/$(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)))
+NAME=liburing
+SPECFILE=$(TOP)/$(NAME).spec
+VERSION=$(shell awk '/Version:/ { print $$2 }' $(SPECFILE))
+VERSION_MAJOR=$(shell echo $(VERSION) | cut -d. -f1)
+TAG = $(NAME)-$(VERSION)