From a80a515d2fadf0a36c7e0ef52cc38e879191e8b5 Mon Sep 17 00:00:00 2001 From: Euan Harris Date: Thu, 23 Feb 2017 15:04:05 +0000 Subject: [PATCH] Makefile.rules: Define variables for mock config directory and chroot name This makes it possible to build in a different chroot by overriding these variables on the command line. Signed-off-by: Euan Harris --- planex/Makefile.rules | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/planex/Makefile.rules b/planex/Makefile.rules index 9e287255..6e3c8e42 100644 --- a/planex/Makefile.rules +++ b/planex/Makefile.rules @@ -11,6 +11,8 @@ REPOSDIR ?= repos RPM_DEFINES ?= --define="_topdir $(TOPDIR)" \ --define="dist $(DIST)" \ $(RPM_EXTRA_DEFINES) +MOCK_CONFIGDIR ?= /etc/mock +MOCK_ROOT ?= default # Dependencies are not included when we are only cleaning as they may # have to be rebuilt and it makes no sense to do that when we know we are @@ -38,7 +40,8 @@ CREATEREPO_FLAGS ?= ${QUIET+--quiet} MOCK ?= planex-build-mock MOCK_FLAGS ?= ${QUIET+--quiet} \ - --configdir=mock \ + --configdir=$(MOCK_CONFIGDIR) \ + --root=$(MOCK_ROOT) \ --resultdir=$(dir $@) DEPEND ?= planex-depend