aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 65855825..dc40785d 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@ SUPERUSER=root
SUPERGROUP=root
VERSION := $(shell awk '/Version:/ { print $$2 }' initscripts.spec)
-RELEASE := $(shell awk '/Release:/ { print $$2 }' initscripts.spec)
+RELEASE := $(subst %{?dist},,$(shell awk '/Release:/ { print $$2 }' initscripts.spec))
TAG=initscripts-$(VERSION)-$(RELEASE)
ARCH = $(shell uname -m)