From 3a97dbdca2e50442931094b0f56b9a0878b619ed Mon Sep 17 00:00:00 2001 From: samuel Date: Sun, 28 Dec 2025 11:35:22 +0100 Subject: [PATCH] Fix Makefile recipes --- Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index b270b4a..1c59693 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,9 @@ -NAME = "$(shell basename $PWD)" -VERSION = "$(shell git describe | sed 's/-/./g' || echo '0.1.0')" -BRANCH = "$(shell git branch --show-current)" +NAME = $(shell basename $(PWD)) +VERSION = $(shell git describe | sed 's/-/./g') +BRANCH = $(shell git branch --show-current) -RPM_SOURCEDIR = "$(shell rpm --eval '%{_sourcedir}') -RPM_SYSCONFDIR = "$(shell rpm --eval '%{_sysconfdir}')" +RPM_SOURCEDIR = $(shell rpm --eval '%{_sourcedir}') +RPM_SYSCONFDIR = $(shell rpm --eval '%{_sysconfdir}') .PHONY: name name: @@ -13,7 +13,7 @@ name: version: @echo "$(VERSION)" -$(RPMSOURCE_DIR)/$(NAME)-%.tar.gz: * +$(RPM_SOURCEDIR)/$(NAME)-%.tar.gz: * git archive --format=tar.gz \ --output="$@" \ --prefix="$(NAME)-$(VERSION)/" \