[dm-devel] [PATCH v2 05/11] multipath-tools: Makefile: fix dependencies for "install" target
mwilck at suse.com
mwilck at suse.com
Mon Aug 22 20:41:13 UTC 2022
From: Martin Wilck <mwilck at suse.com>
subdir.install targets should depend on subdir targets.
This is cleaner than just having "install" depend on "all".
Signed-off-by: Martin Wilck <mwilck at suse.com>
---
Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 82e0ea3..ffca586 100644
--- a/Makefile
+++ b/Makefile
@@ -84,7 +84,7 @@ libmultipath/checkers.install \
$(BUILDDIRS.clean):
$(MAKE) -C ${@:.clean=} clean
-$(BUILDDIRS:=.install):
+$(BUILDDIRS:=.install): $(BUILDDIRS)
$(MAKE) -C ${@:.install=} install
$(BUILDDIRS:=.uninstall):
@@ -93,7 +93,7 @@ $(BUILDDIRS:=.uninstall):
clean: $(BUILDDIRS.clean)
rm -rf abi abi.tar.gz abi-test compile_commands.json
-install: all $(BUILDDIRS:=.install)
+install: $(BUILDDIRS:=.install)
uninstall: $(BUILDDIRS:=.uninstall)
test-progs: all
--
2.37.1
More information about the dm-devel
mailing list