auto-set -j option in makefile, and split out cmake setup rule

This commit is contained in:
Adam Ierymenko 2019-08-19 10:06:39 -07:00
parent b14a59629c
commit b34218c8c2
No known key found for this signature in database
GPG Key ID: 1657198823E52A61

View File

@ -5,8 +5,11 @@ CMAKE_OPTS := -DCMAKE_BUILD_TYPE=Release
.PHONY: all
all:
mkdir -p ${BUILDDIR} && cd ${BUILDDIR} && cmake .. ${CMAKE_OPTS} && $(MAKE) -j$(shell getconf _NPROCESSORS_ONLN)
all: setup
cd ${BUILDDIR} && $(MAKE) -j$(shell getconf _NPROCESSORS_ONLN)
setup:
mkdir -p ${BUILDDIR} && cd ${BUILDDIR} && cmake .. ${CMAKE_OPTS}
clean:
rm -rf ${BUILDDIR}