From 453a99b2876bc90a96645b8e1264661ea34f7f17 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Tue, 12 Feb 2019 15:55:02 +0100 Subject: [PATCH] Never install phony commands --- src/makefile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/makefile.c b/src/makefile.c index e9abe04..45b939c 100644 --- a/src/makefile.c +++ b/src/makefile.c @@ -2312,14 +2312,14 @@ static int _install_target(Makefile * makefile, String const * target) static void _install_target_command(Makefile * makefile, String const * target) { String const * path; - int phony; String const * mode; mode_t m = 0644; String * p; if((path = _makefile_get_config(makefile, target, "install")) == NULL) return; - phony = _makefile_is_phony(makefile, target); + if(_makefile_is_phony(makefile, target)) + return; if((mode = _makefile_get_config(makefile, target, "mode")) == NULL /* XXX these tests are not sufficient */ || mode[0] == '\0'