23 lines
479 B
Makefile
23 lines
479 B
Makefile
![]() |
# simple makefile to build, test and clean
|
||
|
|
||
|
BUILD_MODE ?= Release
|
||
|
ENABLE_COVERAGE ?= On
|
||
|
|
||
|
build: clean
|
||
|
@echo "Build in ${BUILD_MODE} mode"
|
||
|
mkdir -p bin/${BUILD_MODE}
|
||
|
@cd bin/${BUILD_MODE}; cmake ../../ -DCMAKE_BUILD_TYPE=${BUILD_MODE} -DENABLE_COVERAGE=${ENABLE_COVERAGE}
|
||
|
@cd bin/${BUILD_MODE}; make
|
||
|
|
||
|
test: build
|
||
|
@cd bin/${BUILD_MODE}; make test
|
||
|
|
||
|
coverage: build
|
||
|
@cd bin/${BUILD_MODE}; make coverage
|
||
|
|
||
|
install: build
|
||
|
@cd bin/${BUILD_MODE}; make install
|
||
|
|
||
|
clean:
|
||
|
@rm -rf bin
|