diff --git a/src/makefile.c b/src/makefile.c index da9c84e..d4e8a77 100644 --- a/src/makefile.c +++ b/src/makefile.c @@ -2250,7 +2250,8 @@ static int _install_targets(Makefile * makefile) continue; c = targets[i]; targets[i] = '\0'; - ret |= _install_target(makefile, targets); + if(_makefile_is_enabled(makefile, targets) != 0) + ret |= _install_target(makefile, targets); if(c == '\0') break; targets += i + 1; @@ -2704,7 +2705,8 @@ static int _write_uninstall(Makefile * makefile) continue; c = targets[i]; targets[i] = '\0'; - ret = _uninstall_target(makefile, targets); + if(_makefile_is_enabled(makefile, targets) != 0) + ret = _uninstall_target(makefile, targets); if(c == '\0') break; targets += i + 1;