[Makefile] Models: add dependency on header files

Reviewed By: jvillard

Differential Revision: D4867378

fbshipit-source-id: 307f3a8
master
Mehdi Bouaziz 8 years ago committed by Facebook Github Bot
parent 68d6f73142
commit 93b6980b28

@ -8,7 +8,7 @@
ROOT_DIR = ../../..
include $(ROOT_DIR)/Makefile.config
C_MODELS_SOURCES = $(shell find src/ -name "*.c")
C_MODELS_SOURCES = $(shell find src/ -name "*.[ch]")
INFER_RESULTS = out/report.json
all: install

@ -8,13 +8,14 @@
ROOT_DIR = ../../..
include $(ROOT_DIR)/Makefile.config
CPP_MODELS_SOURCES = $(shell find src/ -name "*.cpp")
C_MODELS_SOURCES = $(shell find src/c_src/ -name "*.c")
MODELS_SOURCES = $(shell find src/ -name "*.cpp") \
$(shell find src/c_src/ -name "*.[ch]") \
$(shell find include -type f)
INFER_RESULTS = out/report.json
all: install
$(INFER_RESULTS): $(CPP_MODELS_SOURCES) $(C_MODELS_SOURCES) $(CLANG_DEPS_NO_MODELS)
$(INFER_RESULTS): $(MODELS_SOURCES) $(CLANG_DEPS_NO_MODELS)
# make clean in src/ to recompile all the models
$(QUIET)$(call silent_on_success,Building C++ models,\
$(INFER_BIN) -o $(@D) --models-mode --no-failures-allowed -- $(MAKE) -C src clean all)

@ -8,7 +8,7 @@
ROOT_DIR = ../../..
include $(ROOT_DIR)/Makefile.config
OBJC_MODELS_SOURCES = $(shell find src/ -name "*.m" -or -name "*.c")
OBJC_MODELS_SOURCES = $(shell find src/ -name "*.[chm]")
INFER_RESULTS = out/report.json
all: install

Loading…
Cancel
Save