mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 14:25:49 +00:00
make: Force rebuild is headers changed
Not a clean solution yet. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Acked-by: Pavel Emelianov <xemul@parallels.com>
This commit is contained in:
4
Makefile
4
Makefile
@@ -69,6 +69,8 @@ OBJS += restorer.o
|
||||
|
||||
DEPS := $(patsubst %.o,%.d,$(OBJS))
|
||||
|
||||
HEADERS := $(shell find ./include/* -name '*.h' -print)
|
||||
|
||||
OBJS-BLOB += parasite.o
|
||||
DEPS-BLOB += $(patsubst %.o,%.d,$(OBJS-BLOB))
|
||||
SRCS-BLOB += $(patsubst %.o,%.c,$(OBJS-BLOB))
|
||||
@@ -106,7 +108,7 @@ $(PROGRAM): $(OBJS)
|
||||
$(E) " LINK " $@
|
||||
$(Q) $(CC) $(CFLAGS) $(OBJS) $(LIBS) -o $@
|
||||
|
||||
$(DEPS): $(HEAD-BLOB-GEN)
|
||||
$(DEPS): $(HEAD-BLOB-GEN) $(HEADERS)
|
||||
%.d: %.c
|
||||
$(Q) $(CC) -M -MT $(patsubst %.d,%.o,$@) $(CFLAGS) $< -o $@
|
||||
|
||||
|
Reference in New Issue
Block a user