summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElia Pinto <devzero2000@rpm5.org>2014-01-22 03:28:43 -0800
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-01-26 11:44:09 -0500
commitbd390ae7c75dc5bb0e151e6fd2f7156998ed710f (patch)
tree49e470be4143a5d357fd92633135d444dd59d343
parentb4a11878f2fdf5b07f895863747153de632ff4e6 (diff)
build-sys: add a phony target for cppcheck
The cppcheck target was introduced by commit 16f4efb4150c65e3c61adaa8ea512489de49f532 "build-sys: add cppcheck target". But it is preferable to use a make phony target for it, as this patch does. There are two general reasons to use a phony target: to avoid a conflict with a file of the same name, and to improve performance. In this case the first reason is obvious, and the second is that make skips the implicit rule search for phony targets, since it knows that phony targets do not name actual files that could be remade from other files (as described in the "Gnu Make" Manual).
-rw-r--r--Makefile.am1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 37073d23a3..0b891a771a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -5008,6 +5008,7 @@ tests += \
test-libsystemd-id128-sym
endif
+.PHONY: cppcheck
cppcheck:
cppcheck --enable=all -q $(top_srcdir)