From 3e559dbfb3c34dfe0fb563718b047e90ce54f4a1 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sat, 29 Dec 2018 18:44:23 +0100 Subject: [PATCH] Do not {,un}install disabled targets --- src/makefile.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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;