Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (11 sloc) 334 Bytes
NCPU=`../CMake/GetCPUCount.sh`
all:
@cmake --version &> /dev/null || (echo Please install "cmake" before running "make". ; exit 1)
@if [ ! -d build ] || [ ! -f build/Makefile ]; \
then rm -fr build; mkdir build; cd build; cmake ..; cd ..; \
fi
@cd build; make -j${NCPU}
clean:
@cd build; make clean
distclean:
@rm -fr build