| # This is just a convenience Makefile to avoid having to remember |
| # all the CMake commands and their arguments. |
| |
| BUILD_DIR=build |
| CLANG_FORMAT=clang-format |
| |
| .PHONY: all tidy test clean cclean format |
| |
| all: ${BUILD_DIR} |
| cmake --build ${BUILD_DIR} |
| |
| test: all |
| make -C test test |
| |
| tidy: |
| cmake -B${BUILD_DIR} -DCLANG_TIDY=ON . |
| |
| ${BUILD_DIR}: CMakeLists.txt |
| cmake -B${BUILD_DIR} . |
| |
| clean: |
| cmake --build build --target clean |
| make -C test clean |
| |
| cclean: |
| rm -rf ${BUILD_DIR} |
| make -C test cclean |
| |
| format: |
| ${CLANG_FORMAT} -i src/*.cpp |
| ${CLANG_FORMAT} -i include/sframe/*.h |
| ${CLANG_FORMAT} -i test/*.cpp |