Comment 8 for bug 1913321

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

man dh_clean:
path ...
           Delete these paths too.

           Note that directories passed as arguments must end with a trailing slash. Any
           content in these directories will be removed as well.

i don't think obj-$() without '/' at the end will work.

Normally in override_dh_clean, dh_clean must be called last, otherwise it will wipe the state with the subsequent commands failing, and not remembering that it needs to rerun them. Thus it's always best to do

override_dh_clean:
    random stuff
    dh_clean

Also i'd rather you clean the test dir in "override_dh_auto_clean:" before calling regular dh_auto_clean. As that's the target meant for cleaning up the upstream build system mess.

Also need to ignore result of that make call, i.e. "-make clean"