[CRIU] [PATCH 1/3] images/Makefile: fix dep gen

Kir Kolyshkin kolyshkin at gmail.com
Wed Jan 23 23:02:19 MSK 2019


Since this part is inside "define" statement, double $ should be
used to refer to internal functions, to call the patsubst when
a define is called (rather than defined).

This should fix dependency generation for images/

Signed-off-by: Kir Kolyshkin <kolyshkin at gmail.com>
---
 images/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/images/Makefile b/images/Makefile
index b360a23b5..4de6990b4 100644
--- a/images/Makefile
+++ b/images/Makefile
@@ -93,7 +93,7 @@ ifeq ($(PROTOUFIX),y)
 endif
 $(obj)/$(1).pb-c.d: $(obj)/$(1).pb-c.c $(addsuffix .pb-c.d,$(addprefix $(obj)/,$(2))) $(makefile-deps)
 	$$(E) "  DEP     " $$@
-	$$(Q) $$(CC) -M -MT $$@ -MT $(patsubst %.d,%.o,$$@) $$(CFLAGS) $$< -o $$@
+	$$(Q) $$(CC) -M -MT $$@ -MT $$(patsubst %.d,%.o,$$@) $$(CFLAGS) $$< -o $$@
 endef
 
 $(foreach file, $(proto-obj-y),                                                 \
-- 
2.17.1



More information about the CRIU mailing list