[Crash-utility] [PATCH v2 2/4] extensions: fix defs.h dependency

Sven Schnelle svens at linux.ibm.com
Mon Dec 20 13:16:49 UTC 2021


defs.h must be a dependency on each source files, otherwise
targets might be built before defs.h is linked into the directory.

Signed-off-by: Sven Schnelle <svens at linux.ibm.com>
---
 extensions/Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/extensions/Makefile b/extensions/Makefile
index 0ad625af37ce..2894b9aa5a08 100644
--- a/extensions/Makefile
+++ b/extensions/Makefile
@@ -26,9 +26,9 @@
 
 CONTRIB_SO := $(patsubst %.c,%.so,$(wildcard *.c))
 
-all: link_defs $(CONTRIB_SO)
-	
-link_defs:
+all: $(CONTRIB_SO)
+
+defs.h:
 	@rm -f defs.h
 	@ln ../defs.h 
 
-- 
2.32.0




More information about the Crash-utility mailing list