Skip to content

Commit 0f47ba6

Browse files
author
Axxiant Ltd
committed
chore: fix makefile targets
1 parent f34d29d commit 0f47ba6

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@ BUILD_TYPE ?= Release
99

1010
.PHONY: all clean test submodules check-cmake
1111

12+
all: check-cmake submodules $(BUILD_DIR)/Makefile
13+
@cd $(BUILD_DIR) && $(MAKE)
14+
1215
check-cmake:
1316
@if [ -f CMakeCache.txt ] && ! grep -q "CMAKE_BUILD_TYPE:STRING=Release" CMakeCache.txt; then \
1417
echo "ERROR: Root CMakeCache.txt exists with wrong BUILD_TYPE. This happens when running 'cmake -S . -B .' directly."; \
1518
echo "Please run 'git checkout Makefile' and then use 'make' instead."; \
1619
exit 1; \
1720
fi
18-
19-
all: check-cmake submodules $(BUILD_DIR)/Makefile
2021
@cd $(BUILD_DIR) && $(MAKE)
2122

2223
submodules:

0 commit comments

Comments
 (0)