diff --git a/Makefile b/Makefile index 76660ac..92192e5 100644 --- a/Makefile +++ b/Makefile @@ -38,8 +38,7 @@ build: $(BUILD_DIR)/CMakeCache.txt cmake --build $(BUILD_DIR) -j $(JOBS) $(BUILD_DIR)/CMakeCache.txt: - @mkdir -p $(BUILD_DIR) - cd $(BUILD_DIR); cmake ../ -DCMAKE_BUILD_TYPE=$(BUILD_TYPE) + cmake -B $(BUILD_DIR) -DCMAKE_BUILD_TYPE=$(BUILD_TYPE) install: build cmake --build $(BUILD_DIR) --target install