From b2c5198b1996c9053c1bae38755f76125c8cb169 Mon Sep 17 00:00:00 2001 From: Etienne Dechamps Date: Tue, 17 Jul 2012 11:23:09 +0200 Subject: Don't build packages that haven't been selected. Currently, when configure --with-config is used, selective compilation is only effective for the simple "make" case. Package builders (e.g. make rpm) still build everything (utils and modules). This patch fixes that. Signed-off-by: Prakash Surya Signed-off-by: Brian Behlendorf Issue #851 --- config/rpm.am | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'config/rpm.am') diff --git a/config/rpm.am b/config/rpm.am index 41107d5ee..c5929833b 100644 --- a/config/rpm.am +++ b/config/rpm.am @@ -1,18 +1,24 @@ srpm-modules: +if CONFIG_KERNEL $(MAKE) $(AM_MAKEFLAGS) pkg="${PACKAGE}-modules" srpm-common +endif srpm-utils: +if CONFIG_USER $(MAKE) $(AM_MAKEFLAGS) pkg="${PACKAGE}" srpm-common +endif srpm: srpm-modules srpm-utils rpm-modules: srpm-modules +if CONFIG_KERNEL $(MAKE) $(AM_MAKEFLAGS) pkg="${PACKAGE}-modules" rpm-common +endif rpm-utils: srpm-utils +if CONFIG_USER $(MAKE) $(AM_MAKEFLAGS) pkg="${PACKAGE}" rpm-common - -rpm-modules: srpm-modules +endif rpm: rpm-modules rpm-utils -- cgit v1.2.3