grub2/Makefile
Peter Jones ebe16ceeab Make a couple of commands be built differently.
Signed-off-by: Peter Jones <pjones@redhat.com>
2018-07-12 18:51:56 -04:00

52 lines
902 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
local prep mockbuild compile :
fedpkg $@
.PHONY: all push srpm scratch release rebase rpmspec local prep mockbuild compile clean
# vim:ft=make