forked from DVLab-NTU/gv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (28 loc) · 935 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
all: build
build:
cmake -S . -B build -DCMAKE_EXPORT_COMPILE_COMMANDS=1
$(MAKE) -C build -j 8 --no-print-directory
release:
cmake -S . -B build -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DCMAKE_BUILD_TYPE=Release
$(MAKE) -C build -j 8 --no-print-directory
# force macos to use the clang++ installed by brew instead of the default one
# which is outdated
# build-clang++:
# cmake -S . -B build -DCMAKE_EXPORT_COMPILE_COMMANDS=1 $(shell which clang++)
# $(MAKE) -C build
# run all tests with current gv binary at the root of the project
# use ./scripts/RUN_TESTS to run tests with specific dofiles
test:
./scripts/RUN_TEST -v
test-full:
./scripts/RUN_TEST -v -f
test-update:
./scripts/RUN_TEST -u
debug:
cmake -S . -B build -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DCMAKE_BUILD_TYPE=Debug
$(MAKE) -C build -j 8
clean:
cmake --build build --target clean
rm -rf bin
# rm -rf build
.PHONY: all build build-clang++ test lint clean