Hello,

Goswin von Brederlow wrote:

The seconds part requires that tools like sbuild and pbuilder know
beforehand if build or build-arch will be used.

For packages that do not implement build-arch, it is acceptable to call the build target with only B-D installed, because that is the way the autobuilders handle it now. So no problem there; packages that implement build-arch can move the dependencies not needed for building arch-dependent packages from B-D to B-D-I as soon as the autobuilders start using build-arch.

Getting rid of unneeded build dependencies is mostly orthogonal to the issue at hand, though.

Running debian-rules
can always have side effects and can actively rely on them so a
"--has-target" can not be implemented cleanly in make.

I am proposing hooking into the logic that ultimately decides that there is no such target in the Makefile and goes on to print "Don't know how to make 'foo'. Stop.". This means that Makefiles are rebuilt before that test is performed, we stop immediately before the point where we would go towards the first goal target.

Yes, that means running commands that possibly have side effects. But we are going to run these commands anyway.

   Simon


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to