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

I cannot reproduce that:

joey@gnu:~/tmp/hello-2.8>mkdir test
joey@gnu:~/tmp/hello-2.8>dh_auto_test  -v
        make -j1 check

joey@gnu:~/tmp/hello-2.8>make -s -n test
joey@gnu:~/tmp/hello-2.8>

When make outputs nothing, exists_make_target takes this to mean
that the target will not do anything, so does not run it. This causes
dh_auto_test to move on to trying the next target, check, which does
exist.

> 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]}'

This is the method used by dh. It finds explict targets in the Makefile,
but will not find implicit targets.

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature

Reply via email to