[systemd-devel] [PATCH] Makefile.am: add a phony target for cppcheck
Zbigniew Jędrzejewski-Szmek
zbyszek at in.waw.pl
Sun Jan 26 08:44:55 PST 2014
On Wed, Jan 22, 2014 at 03:28:43AM -0800, gitter.spiros at gmail.com wrote:
> From: Elia Pinto <devzero2000 at rpm5.org>
>
> 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).
Applied.
> Signed-off-by: Elia Pinto <devzero2000 at rpm5.org>
Not necessary.
Zbyszek
More information about the systemd-devel
mailing list