jaalto wrote:
> The default dh rule for "clean" considers missing "distclean"
> Makefile target a fatal error.

Debhelper's makefile buildsystem probes to see if targets exist before
running them. It does so by calling make -s -n --no-print-directory $target
and seeing if make shows commands will be run for the target.

>     make[2]: Entering directory `/srv/deb/debian/emelfm2/emelfm2-0.7.0'
>     make[2]: *** No rule to make target `distclean'.  Stop.

The Makefile for this package causes make to build deps files,
even when -n and a nonexistent target is specified. (make does this
because the Makefile includes the deps files.) That defeats the above
heuristic.

Changing the buildsystem to use the method dh uses to test for override
targets in the rules file would avoid this problem. This is an idea I
have been considering, but I will need to run tests against every
possibly affected package to see if it breaks anything.

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature

Reply via email to