forked from pytorch/ELF
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (24 loc) · 667 Bytes
/
Makefile
File metadata and controls
32 lines (24 loc) · 667 Bytes
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
.PHONY: all
all: elf elfgames/go
.PHONY: clean
clean:
rm -rf build/
.PHONY: test
test: test_cpp
.PHONY: test_cpp
test_cpp: test_cpp_elf test_cpp_elfgames_go
build/Makefile: CMakeLists.txt */CMakeLists.txt
mkdir -p build
(cd build && cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ..)
.PHONY: elf
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: test_cpp_elfgames_go
test_cpp_elfgames_go:
(cd build/elfgames/go && GTEST_COLOR=1 ctest --output-on-failure)
.PHONY: elfgames/go
elfgames/go: build/Makefile
(cd build && cmake --build elfgames/go -- -j)