mirror of
https://src.fedoraproject.org/rpms/grub2.git
synced 2024-11-24 06:22:43 +00:00
53 lines
902 B
Makefile
53 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
|