Makefile: Add scratch build target

Sometimes you want to build an rpm without the tests and without running
%check
This commit is contained in:
Brian C. Lane 2021-08-11 14:31:30 -07:00 committed by Ondřej Budai
parent 634dcc0f25
commit 097eb9f04f

View file

@ -230,6 +230,15 @@ rpm: $(RPM_SPECFILE) $(RPM_TARBALL)
--with tests \
$(RPM_SPECFILE)
.PHONY: scratch
scratch: $(RPM_SPECFILE) $(RPM_TARBALL)
rpmbuild -bb \
--define "_topdir $(CURDIR)/rpmbuild" \
--define "commit $(COMMIT)" \
--without tests \
--nocheck \
$(RPM_SPECFILE)
#
# Releasing
#