-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (19 loc) · 700 Bytes
/
Makefile
File metadata and controls
24 lines (19 loc) · 700 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
CLANG_FORMAT = clang-format
help:
@echo "Available commands:"
@echo " make help - Show this help"
@echo " make codebook - Build the codebook PDF"
@echo " make format - Run clang-format on all source files"
@echo " make tests - Compile all the tests"
@echo " make clean-latex - Remove LaTeX build files"
@echo " make clean-tests - Remove test files"
@echo " make clean - Clean up all build processes"
codebook: format
$(MAKE) -C codebook all
mv codebook/main.pdf codebook.pdf
format:
find nacl/ -type f -regex ".*\.\(c\|h\|cpp\|hpp\)" \
-exec $(CLANG_FORMAT) -i {} +
tests:
clean-latex:
$(MAKE) -C codebook clean