mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
images/Makefile: fix dep gen
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/ Reviewed-by: Cyrill Gorcunov <gorcunov@gmail.com> Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com> Signed-off-by: Andrei Vagin <avagin@gmail.com>
This commit is contained in:
parent
6b84657ca4
commit
f07bd47fde
1 changed files with 1 additions and 1 deletions
|
|
@ -92,7 +92,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), \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue