build-performance = release all: build $(build-performance): CMakeLists.txt cmake -GNinja -S. -Bcmake-build-$(build-performance) -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=ON compile_commands.json: $(build-performance) cp cmake-build-$(build-performance)/compile_commands.json . build: compile_commands.json ninja -Ccmake-build-$(build-performance) clean: rm -r cmake-build-$(build-performance)