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

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to