Compare commits

2 Commits

Author SHA1 Message Date
925db7a05a Add .gitattributes 2025-12-28 11:35:37 +01:00
3a97dbdca2 Fix Makefile recipes 2025-12-28 11:35:22 +01:00
2 changed files with 8 additions and 6 deletions

2
.gitattributes vendored Normal file
View File

@@ -0,0 +1,2 @@
.gitignore export-ignore
.gitattributes export-ignore

View File

@@ -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)/" \