[debhelper-devel] Bug#880840: debhelper: build makefile rule does not replace dh build sequence
James Cowgill
jcowgill at debian.org
Sat Nov 4 23:36:04 UTC 2017
Package: debhelper
Version: 10.10.5
Severity: normal
Hi,
If you create a rules file with a manual build target like this:
#!/usr/bin/make -f
%:
dh $@
build:
echo hi
Then, if you run the binary target directly, dh will run the build
target, but then also run the normal build sequence.
$ fakeroot debian/rules binary
dh binary
debian/rules build
make[1]: Entering directory '/tmp/test'
echo hi
hi
make[1]: Leaving directory '/tmp/test'
dh_update_autotools_config
dh_autoreconf
dh_auto_configure
dh_auto_build
dh_auto_test
create-stamp debian/debhelper-build-stamp
dh_testroot
dh_prep
dh_auto_install
...
I would expect the part from dh_update_autotools_config to dh_auto_test
to be omitted in this case.
I noticed this when I tried to enable Rules-Requires-Root in libopenmpt.
libopenmpt has a "build" target in debian/rules because upstream ships a
top-level "build" directory and make will cause "debian/rules build" to
be a no-op otherwise.
Thanks,
James
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/debhelper-devel/attachments/20171104/e265f522/attachment-0001.sig>
More information about the debhelper-devel
mailing list