multipath-tools Makefiles: handle dependency files correctly
PATCH 1/1 multipath-tools Makefiles: handle dependency files correctly
From: Martin Wilck <[email protected]>
Some generated .d files were not correctly included, and not removed with "make dep_clean". Fix it.
--- libmultipath/Makefile | 4 ++-- multipathd/Makefile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
libmultipath/Makefile +2 -2
@@ -71,7 +71,7 @@ uninstall: clean: dep_clean $(Q)$(RM) core *.a *.o *.so *.so.* *.abi nvme-ioctl.c nvme-ioctl.h autoconfig.h $(NV_VERSION_SCRIPT) -include $(wildcard $(OBJS:.o=.d)) +include $(wildcard $(OBJS:.o=.d) $(OBJS-T:.o=.d)) dep_clean: - $(Q)$(RM) $(OBJS:.o=.d) + $(Q)$(RM) $(OBJS:.o=.d) $(OBJS-T:.o=.d)
multipathd/Makefile +2 -2
@@ -81,7 +81,7 @@ uninstall: clean: dep_clean $(Q)$(RM) core *.o $(EXEC) $(CLI) -include $(wildcard $(OBJS:.o=.d)) +include $(wildcard $(OBJS:.o=.d) $(CLI_OBJS:.o=.d)) dep_clean: - $(Q)$(RM) $(OBJS:.o=.d) + $(Q)$(RM) $(OBJS:.o=.d) $(CLI_OBJS:.o=.d)
Signature · 6 lines
2.39.2 -- dm-devel mailing list [email protected] https://listman.redhat.com/mailman/listinfo/dm-devel
Xose, Ben,
when this gets a Reviewed-by, I'd prepare a new submission to Christophe (unless someone objects).
Martin
Quoted 37 lines · On Mon, 2023-03-20 at 16:55 +0100, [email protected] wrote:
From: Martin Wilck <[email protected]>
Some generated .d files were not correctly included, and not removed with "make
dep_clean". Fix it.Reported-by Xose Vazquez Perez <[email protected]>Signed-off-by Martin Wilck <[email protected]>---
libmultipath/Makefile | 4 ++--
multipathd/Makefile | 4 ++--2 files changed, 4 insertions(+), 4 deletions(-)libmultipath/Makefile +0
-0@@ -71,7 +71,7 @@ uninstall:clean:
dep_clean
$(Q)$(RM) core *.a *.o *.so *.so.* *.abinvme-ioctl.cnvme-ioctl.hautoconfig.h$(NV_VERSION_SCRIPT)libmultipath/Makefile +1
-1-include $(wildcard $(OBJS:.o=.d)) +include $(wildcard $(OBJS:.o=.d) $(OBJS-T:.o=.d))
dep_clean:
- $(Q)$(RM) $(OBJS:.o=.d)
+ $(Q)$(RM) $(OBJS:.o=.d) $(OBJS-T:.o=.d)multipathd/Makefile +0
-0@@ -81,7 +81,7 @@ uninstall:clean:
dep_clean
$(Q)$(RM) core *.o $(EXEC) $(CLI)multipathd/Makefile +1
-1-include $(wildcard $(OBJS:.o=.d)) +include $(wildcard $(OBJS:.o=.d) $(CLI_OBJS:.o=.d))
Quoted 4 lines
dep_clean:
- $(Q)$(RM) $(OBJS:.o=.d)
+ $(Q)$(RM) $(OBJS:.o=.d) $(CLI_OBJS:.o=.d)
--
dm-devel mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/dm-devel
Quoted 4 lines · Martin Wilck
Xose, Ben,
when this gets a Reviewed-by, I'd prepare a new submission to Christophe (unless someone objects).
There is a pending Gentoo patch from Sam James:
https://listman.redhat.com/archives/dm-devel/2023-March/053587.html
--
dm-devel mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/dm-devel
Quoted 7 lines · On Mon, Mar 20, 2023 at 04:55:50PM +0100, [email protected] wrote:
From: Martin Wilck <[email protected]>
Some generated .d files were not correctly included, and not removed with "make
dep_clean". Fix it.Reported-by Xose Vazquez Perez <[email protected]>Signed-off-by Martin Wilck <[email protected]>
Quoted 35 lines
--- libmultipath/Makefile | 4 ++-- multipathd/Makefile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)libmultipath/Makefile +2
-2@@ -71,7 +71,7 @@ uninstall: clean: dep_clean $(Q)$(RM) core *.a *.o *.so *.so.* *.abi nvme-ioctl.c nvme-ioctl.h autoconfig.h $(NV_VERSION_SCRIPT) -include $(wildcard $(OBJS:.o=.d)) +include $(wildcard $(OBJS:.o=.d) $(OBJS-T:.o=.d)) dep_clean: - $(Q)$(RM) $(OBJS:.o=.d) + $(Q)$(RM) $(OBJS:.o=.d) $(OBJS-T:.o=.d)multipathd/Makefile +2
-2@@ -81,7 +81,7 @@ uninstall: clean: dep_clean $(Q)$(RM) core *.o $(EXEC) $(CLI) -include $(wildcard $(OBJS:.o=.d)) +include $(wildcard $(OBJS:.o=.d) $(CLI_OBJS:.o=.d)) dep_clean: - $(Q)$(RM) $(OBJS:.o=.d) + $(Q)$(RM) $(OBJS:.o=.d) $(CLI_OBJS:.o=.d)Signature · 1 line
2.39.2
--
dm-devel mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/dm-devel
Quoted 7 lines · On 3/20/23 16:55, [email protected] wrote:
From: Martin Wilck <[email protected]>
Some generated .d files were not correctly included, and not removed with "make
dep_clean". Fix it.Reported-by Xose Vazquez Perez <[email protected]>Signed-off-by Martin Wilck <[email protected]>
Quoted 24 lines
--- libmultipath/Makefile | 4 ++-- multipathd/Makefile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)libmultipath/Makefile +2
-2@@ -71,7 +71,7 @@ uninstall: clean: dep_clean $(Q)$(RM) core *.a *.o *.so *.so.* *.abi nvme-ioctl.c nvme-ioctl.h autoconfig.h $(NV_VERSION_SCRIPT) -include $(wildcard $(OBJS:.o=.d)) +include $(wildcard $(OBJS:.o=.d) $(OBJS-T:.o=.d)) dep_clean: - $(Q)$(RM) $(OBJS:.o=.d) + $(Q)$(RM) $(OBJS:.o=.d) $(OBJS-T:.o=.d)multipathd/Makefile +0
-0
multipathd/Makefile uninstall: · line 87
Quoted 9 lines
multipathd/Makefile +2
-2@@ -81,7 +81,7 @@ uninstall: clean: dep_clean $(Q)$(RM) core *.o $(EXEC) $(CLI) -include $(wildcard $(OBJS:.o=.d)) +include $(wildcard $(OBJS:.o=.d) $(CLI_OBJS:.o=.d)) dep_clean: - $(Q)$(RM) $(OBJS:.o=.d) + $(Q)$(RM) $(OBJS:.o=.d) $(CLI_OBJS:.o=.d)
--
dm-devel mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/dm-devel