debian-rules-ignores-make-clean-error

All reports of debian-rules-ignores-make-clean-error for the archive. The extended description of this tag is:

A rule in the debian/rules file for this package calls the package's clean or distclean target with a line like:

     -$(MAKE) distclean

or

     $(MAKE) -i distclean
    

The leading "-" or the option -i tells make to ignore all errors. Normally this is done for packages using Autoconf since Makefile may not exist. However, this line ignores all other error messages, not just the missing Makefile error. It's better to use:

     [ ! -f Makefile ] || $(MAKE) distclean
    

so that other error messages from the clean or distclean rule will still be caught (or just remove the "-" if the package uses a static makefile).

Severity: normal, Certainty: certain

Check: rules, Type: source

This tag has not been emitted in any package tested by Lintian.