]> git.donarmstrong.com Git - debhelper.git/commit
inline sequences to optimize away recursive calls to make/dh for implicit targets
authorJoey Hess <joey@kitenet.net>
Mon, 13 Jun 2011 21:00:08 +0000 (17:00 -0400)
committerJoey Hess <joey@kitenet.net>
Mon, 13 Jun 2011 21:16:48 +0000 (17:16 -0400)
commit2418449701ff54d94c2307f3ffd980279ab62e4a
tree5015651951140e25138cba7e3e4579c953cf48fd
parentb957dfe6c454da2db67c8d36abb9cee0cf173b72
inline sequences to optimize away recursive calls to make/dh for implicit targets

This assumes that all implicit rules file targets are owned by dh, so
it can just assume an implicit target can be optimized away to the commands
in its sequence.

I suppose this would break:

build:
dh build

install: build
dh install

binary-%: install
my-binary-builder-$@

my-binary-builder-arch:
echo "whee! I did something pointlessly complicated with make!"
dh binary-arch
my-binary-builder-indep:
dh binary-indep

But I can't imagine anyone does this, at least with a probability of 1 in
ten thousand, so hopefully it doesn't break any existing packages. :)
dh