From 17ad9c1165eab84d558446aab7fe7e26f283d345 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hozza?= Date: Fri, 12 Jan 2024 15:01:01 +0100 Subject: [PATCH] Makefile/rpm: always copy over SPEC file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Any changes done to the SPEC file were not reflected in the `rpmbuild/SPECS` directory across runs of `make rpm`. One had to delete the SPEC file manually to be updated and used for the RPM build. Mark the target as PHONY to ensure that the SPEC is always updated. Signed-off-by: Tomáš Hozza --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 1ef65e183..5a3981ada 100644 --- a/Makefile +++ b/Makefile @@ -215,6 +215,7 @@ unit-tests: RPM_SPECFILE=rpmbuild/SPECS/osbuild-composer.spec RPM_TARBALL=rpmbuild/SOURCES/osbuild-composer-$(COMMIT).tar.gz +.PHONY: $(RPM_SPECFILE) $(RPM_SPECFILE): mkdir -p $(CURDIR)/rpmbuild/SPECS git show HEAD:osbuild-composer.spec > $(RPM_SPECFILE)