Skip to contentSkip to conversation

multipath-tools Makefiles: handle dependency files correctly

PATCH In review [email protected] 3 participants 5 messages Mar 20, 2023 – Mar 23, 2023 Device mapper

lore
Share & tools
lore
#0 lore raw

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
index 61aa611..85767ab 100644
@@ -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
index 9d53132..dca8e10 100644
@@ -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
#1 lore raw

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.

---
 libmultipath/Makefile | 4 ++--
 multipathd/Makefile   | 4 ++--

 2 files changed, 4 insertions(+), 4 deletions(-)
libmultipath/Makefile +0 -0
index 61aa611..85767ab 100644
@@ -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)

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
index 9d53132..dca8e10 100644
@@ -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

maintainer Reviewed-by on v1 1/1
#3 lore raw
In reply to [email protected]
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.

Quoted 35 lines
---
 libmultipath/Makefile | 4 ++--
 multipathd/Makefile   | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
libmultipath/Makefile +2 -2
index 61aa611..85767ab 100644
@@ -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
index 9d53132..dca8e10 100644
@@ -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

Tested-by on v1 1/1
#4 lore raw
In reply to [email protected]
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.

Quoted 24 lines
---
  libmultipath/Makefile | 4 ++--
  multipathd/Makefile   | 4 ++--
  2 files changed, 4 insertions(+), 4 deletions(-)
libmultipath/Makefile +2 -2
index 61aa611..85767ab 100644
@@ -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
index 9d53132..dca8e10 100644

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