Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

Commit

Permalink
Makefile.rules: Define variables for mock config directory and chroot…
Browse files Browse the repository at this point in the history
… name

This makes it possible to build in a different chroot by overriding
these variables on the command line.

Signed-off-by: Euan Harris <[email protected]>
  • Loading branch information
euanh committed Feb 23, 2017
1 parent cd9a402 commit a80a515
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion planex/Makefile.rules
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a80a515

Please sign in to comment.