Gentoo Archives: gentoo-dev

From: "Diego 'Flameeyes' Pettenò" <flameeyes@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] make and wrappers
Date: Mon, 11 Jul 2005 12:22:38
Message-Id: 200507111420.21547@enterprise.flameeyes.is-a-geek.org
1 Following the discussion me and Azarah had about make commands, I've started
2 thinking of a way to fix this without being too intrusive and I found a bit
3 of a solution following Az's suggestion to use a wrapper script.
4
5 Let's see: we already have an emake script, but using it for "make install" is
6 a no-go because it uses -jX from make.conf and that's not good.
7 A solution can be to improve emake wrapper to check if "install" is in its
8 commandline, in which case it can automatically add a -j1 to be safe.
9
10 The the ebuilds can just use emake install to do the work, and let the profile
11 define the default MAKE variable (gmake or make, we'll see in the mean time).
12 BDEPEND in this case should not list any kind of make.
13 If somethign needs exactly GNU make, it will list gmake in BDEPEND
14 (sys-libs/make), and will set MAKE="gmake" in the ebuild, so that emake will
15 use it.
16 The same when we'll have something needing bsdmake, we'll add a
17 dev-util/bsdmake ebuild sometime in the future, and then just BDEPEND on ||
18 ( sys-apps/freebsd-ubin dev-util/bsdmake ) [or just bsdmake depending if the
19 bsdmake ebuild will be used on g/fbsd, too].
20
21 Comments?
22 --
23 Diego "Flameeyes" Pettenò
24 Gentoo Developer - http://dev.gentoo.org/~flameeyes/
25 (Gentoo/FreeBSD, Video, Gentoo/AMD64, Sound, PAM)

Replies

Subject Author
Re: [gentoo-dev] make and wrappers Ciaran McCreesh <ciaran.mccreesh@×××××××××××××.uk>
Re: [gentoo-dev] make and wrappers Henrik Brix Andersen <brix@g.o>