Skip to content

Commit 3d00624

Browse files
committed
remove lock target from makefile
fix quoting problem with doc target
1 parent 4003c3f commit 3d00624

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

GNUmakefile

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export CPM_SOURCE_CACHE=${HOME}/.cache/CPM
1515
PROJECT_NAME:=$(shell basename $(CURDIR))
1616
BUILD_DIR?=../build-$(PROJECT_NAME)-$(CXX)-$(BUILD_TYPE)
1717

18-
.PHONY: update format all test standalone doc check clean distclean lock
18+
.PHONY: update format all test standalone doc check clean distclean
1919

2020
# the default target does just all, but neither standalone nor doc
2121
test:
@@ -31,13 +31,6 @@ update:
3131
wget -q -O cmake/CPM.cmake https://github.com/cpm-cmake/CPM.cmake/releases/latest/download/get_cpm.cmake
3232
wget -q -O cmake/WarningsAsErrors.cmake https://raw.githubusercontent.com/approvals/ApprovalTests.cpp/master/CMake/WarningsAsErrors.cmake
3333

34-
lock: all standalone doc
35-
cmake --build $(BUILD_DIR)/all --target cpm-update-package-lock
36-
cmake --build $(BUILD_DIR)/test --target cpm-update-package-lock
37-
cmake --build $(BUILD_DIR)/install --target cpm-update-package-lock
38-
cmake --build $(BUILD_DIR)/standalone --target cpm-update-package-lock
39-
cmake --build $(BUILD_DIR)/documentation --target cpm-update-package-lock
40-
4134
# install the library to stagedir
4235
install:
4336
cmake -S . -B $(BUILD_DIR)/$@ ${CMAKE_PRESET} -DCMAKE_INSTALL_PREFIX=$(STAGE_DIR) -DCMAKE_CXX_STANDARD=20 #NO! -DCMAKE_CXX_CLANG_TIDY=clang-tidy # --trace-expand
@@ -61,7 +54,7 @@ all:
6154

6255
# GenerateDocs
6356
doc:
64-
cmake -S documentation -B $(BUILD_DIR)/documentation "${CMAKE_PRESET}"
57+
cmake -S documentation -B $(BUILD_DIR)/documentation ${CMAKE_PRESET}
6558
cmake --build $(BUILD_DIR)/documentation --target GenerateDocs
6659

6760
format: distclean

0 commit comments

Comments
 (0)