forked from Alepha/Alepha
18 lines
318 B
Makefile
18 lines
318 B
Makefile
# You can use this makefile in your
|
|
# build directory to drive ninja builds.
|
|
|
|
processor_count=$(shell grep -c "^processor" /proc/cpuinfo)
|
|
#count=$(shell expr ${processor_count} - 1)
|
|
count=$(shell expr $(processor_count) - 1 )
|
|
|
|
__primary: test
|
|
|
|
all:
|
|
ninja -v -j${count} all
|
|
|
|
clean:
|
|
ninja clean
|
|
|
|
test: all
|
|
ninja test
|