grub2/Makefile
Petr Šabata 100e37f2e6 RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/grub2#f7e054f3d693af43a903faf33b70673f7aca4508
2020-10-15 09:48:35 +02:00

56 lines
948 B
Makefile

#
# Makefile
# Peter Jones, 2018-07-11 02:39
#
define get-config
$(shell git config --local --get "grub2.$(1)")
endef
FEDVER ?= $(call get-config, rebase.fedora-version)
ifeq ($(FEDVER),)
override FEDVER = 29
endif
ARCH ?=
ifneq ($(ARCH),)
override ARCH := $(foreach x,$(ARCH), --arch-override=$(x))
endif
# this is wacky because just using wildcard gets the list from before clean
# happens.
SOURCES ?= $(shell ls *.src.rpm)
all:
push :
git push
clean :
@rm -vf *.src.rpm
srpm : clean
fedpkg srpm
scratch: srpm
koji build --scratch ${ARCH} f${FEDVER} $(SOURCES)
release:
fedpkg build --target f${FEDVER} ${ARCH}
rebase:
./do-rebase --nocommit --nobumpspec f${FEDVER} ${REPO}
rpmspec:
rpmspec -D "_sourcedir $(shell pwd)" -P grub2.spec
rebuild: srpm
rpmbuild --rebuild $(SOURCES)
local prep mockbuild compile :
fedpkg $@
.PHONY: all push srpm scratch release rebase rpmspec local prep mockbuild compile clean
# vim:ft=make