Fix Makefile recipes

This commit is contained in:
2025-12-28 11:35:22 +01:00
parent c0989dc7cf
commit 3a97dbdca2

View File

@@ -1,9 +1,9 @@
NAME = "$(shell basename $PWD)" NAME = $(shell basename $(PWD))
VERSION = "$(shell git describe | sed 's/-/./g' || echo '0.1.0')" VERSION = $(shell git describe | sed 's/-/./g')
BRANCH = "$(shell git branch --show-current)" BRANCH = $(shell git branch --show-current)
RPM_SOURCEDIR = "$(shell rpm --eval '%{_sourcedir}') RPM_SOURCEDIR = $(shell rpm --eval '%{_sourcedir}')
RPM_SYSCONFDIR = "$(shell rpm --eval '%{_sysconfdir}')" RPM_SYSCONFDIR = $(shell rpm --eval '%{_sysconfdir}')
.PHONY: name .PHONY: name
name: name:
@@ -13,7 +13,7 @@ name:
version: version:
@echo "$(VERSION)" @echo "$(VERSION)"
$(RPMSOURCE_DIR)/$(NAME)-%.tar.gz: * $(RPM_SOURCEDIR)/$(NAME)-%.tar.gz: *
git archive --format=tar.gz \ git archive --format=tar.gz \
--output="$@" \ --output="$@" \
--prefix="$(NAME)-$(VERSION)/" \ --prefix="$(NAME)-$(VERSION)/" \