mirror of
https://src.fedoraproject.org/rpms/grub2.git
synced 2024-11-28 07:44:52 +00:00
321567331b
Signed-off-by: Peter Jones <pjones@redhat.com>
55 lines
948 B
Makefile
55 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
|