Package: debhelper
Version: 9.20130630
Severity: normal

Dear Maintainer,
in light of recent make target detection code bugs #706923, #707481,
#713257 I have yet another one.

Using hello source package with following rules file & debian/compat 9:
%:
        dh $@

override_dh_auto_test:
        mkdir -p test
        dh_auto_test

Results in testsuite target "check" to not be executed. since `make -s
-n test` exits with 0 "nothing to be done with test".

But looking at bash-completion package it does manage to correctly
detect that test target doesn't exist, yet check target does.

Bash-completion executes this to find all make targets:
make -qp | awk -F':' '/^[a-zA-Z0-9][^$#\/\t=]*:([^=]|$)/ \
{split($1,A,/ /);for(i in A)print A[i]}'

Maybe something similar to above can be used to search for make targets
in debhelper? Seems like a slightly more reliable way to do so.

Regards,

Dmitrijs.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to