diff mbox series

[v2,05/11] multipath-tools: Makefile: fix dependencies for "install" target

Message ID 20220822204119.20719-6-mwilck@suse.com (mailing list archive)
State Superseded, archived
Delegated to: christophe varoqui
Headers show
Series Split libmultipath and libmpathutil | expand

Commit Message

Martin Wilck Aug. 22, 2022, 8:41 p.m. UTC
From: Martin Wilck <mwilck@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@suse.com>
---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

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