forked from pytorch/ELF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (29 loc) · 926 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
38
39
40
.PHONY: all
all: elf elfgames/american_checkers elfgames/russian_checkers elfgames/ugolki
.PHONY: clean
clean:
rm -rf build/
.PHONY: test
test: test_cpp
.PHONY: test_cpp
test_cpp: test_cpp_elf
build/Makefile: CMakeLists.txt */CMakeLists.txt
mkdir -p build
(cd build && cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ..)
.PHONY: re
re: clean all
.PHONY: elfs
elf: build/Makefile
(cd build && cmake --build elf -- -j)
.PHONY: test_cpp_elf
test_cpp_elf:
(cd build/elf && GTEST_COLOR=1 ctest --output-on-failure)
.PHONY: elfgames/american_checkers
elfgames/american_checkers: build/Makefile
(cd build && cmake --build elfgames/american_checkers -- -j)
.PHONY: elfgames/russian_checkers
elfgames/russian_checkers: build/Makefile
(cd build && cmake --build elfgames/russian_checkers -- -j)
.PHONY: elfgames/ugolki
elfgames/ugolki: build/Makefile
(cd build && cmake --build elfgames/ugolki -- -j)