summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <hun@n-dimensional.de>2010-01-03 14:32:29 +0100
committerHans Ulrich Niedermann <hun@n-dimensional.de>2010-01-03 14:32:29 +0100
commit90dbc1b65548a1693c091df6c23ca0f06d2b38c0 (patch)
treeef4351f8937efe3bd3daf734bf890b431c0f5995
parentb8d10c0dba38aa47d008e09d82b055b9d848783c (diff)
downloadgit-rpm-master.zip
git-rpm-master.tar.gz
git-rpm-master.tar.xz
Make mock arch and fedora release configurableHEADmaster
Override make vars MOCK_ARCH and/or MOCK_FEDORA_RELEASE on the make command line or in the GNUmakefile which includes git-rpm.mk.
-rw-r--r--git-rpm.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/git-rpm.mk b/git-rpm.mk
index 233a1a1..886a31a 100644
--- a/git-rpm.mk
+++ b/git-rpm.mk
@@ -150,7 +150,9 @@ tag: clog
WORKDIR ?= $(PWD)
MOCKDIR ?= $(WORKDIR)
-MOCKCFG ?= fedora-$(shell echo $(RPM_RELEASE) | sed -n 's/.*\.fc\([1-9][0-9]*\)$$/\1/p')-$(RPM_ARCH)
+MOCK_ARCH ?= $(RPM_ARCH)
+MOCK_FEDORA_RELEASE ?= $(shell echo $(RPM_RELEASE) | sed -n 's/.*\.fc\([1-9][0-9]*\)$$/\1/p')
+MOCKCFG ?= fedora-$(MOCK_FEDORA_RELEASE)-$(MOCK_ARCH)
MOCKRESULTDIR ?= $(MOCKDIR)/$(NVR).mock
SCRATCHBUILD_KOJI_TAG = dist-f13