Lintian ReportsBETA

Wdebian-rules-ignores-make-clean-error

Tag versions

The tag is present in Lintian version 2.108.13. That is the most recent version we know about.

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).

Visibility: warning

Check: debian/rules

The following 80 source packages in the archive triggered the tag 86 times.

There were no overrides.