Never install phony commands

This commit is contained in:
Pierre Pronchery 2019-02-12 15:55:02 +01:00
parent b44f382a86
commit 453a99b287

View File

@ -2312,14 +2312,14 @@ static int _install_target(Makefile * makefile, String const * target)
static void _install_target_command(Makefile * makefile, String const * target) static void _install_target_command(Makefile * makefile, String const * target)
{ {
String const * path; String const * path;
int phony;
String const * mode; String const * mode;
mode_t m = 0644; mode_t m = 0644;
String * p; String * p;
if((path = _makefile_get_config(makefile, target, "install")) == NULL) if((path = _makefile_get_config(makefile, target, "install")) == NULL)
return; return;
phony = _makefile_is_phony(makefile, target); if(_makefile_is_phony(makefile, target))
return;
if((mode = _makefile_get_config(makefile, target, "mode")) == NULL if((mode = _makefile_get_config(makefile, target, "mode")) == NULL
/* XXX these tests are not sufficient */ /* XXX these tests are not sufficient */
|| mode[0] == '\0' || mode[0] == '\0'