Makefile/rpm: always copy over SPEC file
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 <thozza@redhat.com>
This commit is contained in:
parent
8ba3426f12
commit
17ad9c1165
1 changed files with 1 additions and 0 deletions
1
Makefile
1
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue