-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
75 lines (55 loc) · 1.66 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
include ./makes/defines.inc
.PHONY: release debug clean ctags format tidy help
.PHONY: library_release library_debug
.PHONY: tests_release tests_debug
.PHONY: samples_release samples_debug
SAMPLE_NAMES = toySample mnist mnist_conv cifar10_conv
all: release debug
release: library_release tests_release samples_release
debug: library_debug tests_debug samples_debug
#### library
library_release:
@+make -C core release
library_debug:
@+make -C core debug
#### tests
tests_release: library_release
@+make -C tests release
tests_debug: library_debug
@+make -C tests debug
#### samples
samples_release: library_release
@+make -C samples release
samples_debug: library_debug
@+make -C samples debug
#### utils
clean:
rm -rf $(OUTDIR) docs
ctags:
ctags -R --tag-relative=yes --exclude=.git $(ROOT_DIR)
doxygen:
doxygen Doxyfile
format:
$(CLANG_FORMAT) $(CLANG_FORMAT_ARGS) $(ROOT_DIR)/includes/*.h
@+make -C core format
@+make -C tests format
@+make -C samples/toySample format
@+make -C samples/mnist format
@+make -C samples/mnist_conv format
@+make -C samples/cifar10_conv format
tidy:
@+make -C core tidy
@+make -C samples/toySample tidy
@+make -C samples/mnist tidy
@+make -C samples/mnist_conv tidy
@+make -C samples/cifar10_conv tidy
help:
@echo "Possible commands:"
@echo "\tall - release + debug"
@echo "\trelease - release version of library"
@echo "\tdebug - debug version of library"
@echo "\tclean - cleans all files"
@echo "\tctags - creates tags for all files"
@echo "\tformat - runs clang-format for all source files"
@echo "\ttidy - runs clang-tidy for all source files"
@echo "\tdoxygen - creates documentation using doxygen"