mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
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
22 lines
521 B
Makefile
22 lines
521 B
Makefile
# 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)
|
|
|
|
local:
|
|
@./scripts/build_local.sh
|
|
|
|
android:
|
|
@./scripts/build_android.sh
|
|
|
|
ios:
|
|
@./scripts/build_ios.sh
|
|
|
|
clean: # This will remove ALL build folders.
|
|
@rm -r build*/
|
|
|
|
linecount:
|
|
@cloc --read-lang-def=caffe.cloc caffe2 || \
|
|
echo "Cloc is not available on the machine. You can install cloc with " && \
|
|
echo " sudo apt-get install cloc"
|