summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorChris Hiszpanski <chris@hiszpanski.name>2017-04-20 01:27:02 -0700
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>2017-04-20 01:35:03 -0700
commit5b6fb047aa8be0ab615d7b1840ce687970b8b044 (patch)
tree0fccb28f594c0a47b4ee833db516e33f26a9ed1f /Makefile
parente34c5dc1c380cc506e99efec4f2067335678cabb (diff)
downloadpytorch-5b6fb047aa8be0ab615d7b1840ce687970b8b044.tar.gz
pytorch-5b6fb047aa8be0ab615d7b1840ce687970b8b044.tar.bz2
pytorch-5b6fb047aa8be0ab615d7b1840ce687970b8b044.zip
Fix parallel build support in makefile
Summary: Top-level makefile had `make` hardcoded, resulting in slow build and the following message when following installation instructions: warning: jobserver unavailable: using -j1. Add `+' to parent make rule. Replacing this recursive make command with the variable MAKE fixes the issue. Closes https://github.com/caffe2/caffe2/pull/324 Differential Revision: D4920978 Pulled By: Yangqing fbshipit-source-id: 1e75ab41786e52d1b7abcc2c46ad1088880d8c1d
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index abac683d5f..f3577ecdc5 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
# This makefile does nothing but delegating the actual building to cmake.
all:
- @mkdir -p build && cd build && cmake .. $(python ./scripts/get_python_cmake_flags.py) && make
+ @mkdir -p build && cd build && cmake .. $(python ./scripts/get_python_cmake_flags.py) && $(MAKE)
local:
@./scripts/build_local.sh