Do not {,un}install disabled targets

This commit is contained in:
Pierre Pronchery 2018-12-29 18:44:23 +01:00
parent 3d4c0c9336
commit 3e559dbfb3

View File

@ -2250,7 +2250,8 @@ static int _install_targets(Makefile * makefile)
continue; continue;
c = targets[i]; c = targets[i];
targets[i] = '\0'; targets[i] = '\0';
ret |= _install_target(makefile, targets); if(_makefile_is_enabled(makefile, targets) != 0)
ret |= _install_target(makefile, targets);
if(c == '\0') if(c == '\0')
break; break;
targets += i + 1; targets += i + 1;
@ -2704,7 +2705,8 @@ static int _write_uninstall(Makefile * makefile)
continue; continue;
c = targets[i]; c = targets[i];
targets[i] = '\0'; targets[i] = '\0';
ret = _uninstall_target(makefile, targets); if(_makefile_is_enabled(makefile, targets) != 0)
ret = _uninstall_target(makefile, targets);
if(c == '\0') if(c == '\0')
break; break;
targets += i + 1; targets += i + 1;