Fix recursive make invocations building models

Summary:
public
When building models, make was invoked explicitly with `make -j` rather
than with `$(MAKE)`.  This prevented controlling parallelism from the
top-level make invocation.

Reviewed By: akotulski

Differential Revision: D2786812

fb-gh-sync-id: 7f6d58c
master
Josh Berdine 9 years ago committed by facebook-github-bot-7
parent 6daedaef13
commit b93bbfdd39

@ -19,7 +19,7 @@ all: $(C_MODELS_FILE)
$(C_MODELS_FILE): $(C_MODELS_SOURCES) $(CLANG_DEPS)
# make clean in src/ in case $(CLANG_DEPS) have changed
$(MAKE) -C src clean
$(INFER) -o out/ --models_mode --no_failures_allowed -- make -C src -j
$(INFER) -o out/ --models_mode --no_failures_allowed -- $(MAKE) -C src
touch $(C_MODELS_FILE)
install: $(C_MODELS_FILE)

@ -19,7 +19,7 @@ all: $(CPP_MODELS_FILE)
$(CPP_MODELS_FILE): $(CPP_MODELS_SOURCES) $(CLANG_DEPS)
# make clean in src/ in case $(CLANG_DEPS) have changed
$(MAKE) -C src clean
$(INFER) -o out/ --models_mode --no_failures_allowed -- make -C src -j
$(INFER) -o out/ --models_mode --no_failures_allowed -- $(MAKE) -C src
touch $(CPP_MODELS_FILE)
install: $(CPP_MODELS_FILE)

@ -19,7 +19,7 @@ all: $(OBJC_MODELS_FILE)
$(OBJC_MODELS_FILE): $(OBJC_MODELS_SOURCES) $(CLANG_DEPS)
# make clean in src/ in case $(CLANG_DEPS) have changed
$(MAKE) -C src clean
$(INFER) -o out/ --models_mode --no_failures_allowed -- make -C src -j
$(INFER) -o out/ --models_mode --no_failures_allowed -- $(MAKE) -C src
touch $(OBJC_MODELS_FILE)
install: $(OBJC_MODELS_FILE)

Loading…
Cancel
Save