diff options
Diffstat (limited to 'tags/d/debian-rules-ignores-make-clean-error.tag')
-rw-r--r-- | tags/d/debian-rules-ignores-make-clean-error.tag | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tags/d/debian-rules-ignores-make-clean-error.tag b/tags/d/debian-rules-ignores-make-clean-error.tag new file mode 100644 index 0000000..b4bc8c4 --- /dev/null +++ b/tags/d/debian-rules-ignores-make-clean-error.tag @@ -0,0 +1,19 @@ +Tag: debian-rules-ignores-make-clean-error +Severity: warning +Check: debian/rules +Explanation: A rule in the <code>debian/rules</code> 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). |