diff options
author | Etienne Dechamps <[email protected]> | 2012-07-17 11:23:09 +0200 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2012-07-26 13:39:37 -0700 |
commit | b2c5198b1996c9053c1bae38755f76125c8cb169 (patch) | |
tree | 3bda567a01452cdf8cd810e990516cede8acf955 /config/rpm.am | |
parent | 739a1a82e0f366923e8d9bc8f9ad4b1c680a780b (diff) |
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 <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Issue #851
Diffstat (limited to 'config/rpm.am')
-rw-r--r-- | config/rpm.am | 10 |
1 files changed, 8 insertions, 2 deletions
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 |