[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#88029: Package which uses jam (instead make)

On Sun, Oct 19, 2003 at 11:20:33AM +0200, Josip Rodin wrote:
> this-and-that function of Make" (so far I remember only two of those, when
> the DEB_BUILD_OPTIONS env. variable was added and when testing for existence
> of build-arch was added).

... which was a fiasco. Doogie finally implemented the proposal and revert it

dpkg (1.10.15) unstable; urgency=low

  * Back out debian/rules build-arch detection.  It is *not* possible *at
    all* to detect available targets in a rules file.  Period.

 -- Adam Heath <doogie@debian.org>  Fri, 19 Sep 2003 20:02:19 -0500

The rationale are not available to me, but I trust him since he really

At this point I see only two alternative:
1) use dependencies
build: build-arch
binary-indep: build-indep

This is not good to run build-indep as root, but only the maintainer
run binary-indep, and there is no need to change dpkg-buildpackage.

2) Set a make variable BUILD  and do
ifdef BUILD
build: $(BUILD)
build: build-arch build-indep

This require dpkg-buildpackage to call debian/rules with
BUILD=build-arch or BUILD=build-indep accordingly.

Of course, variants using environment variables exist.

Bill. <ballombe@debian.org>

Imagine a large red swirl here. 

Reply to: