forked from perror/tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (27 loc) · 716 Bytes
/
Copy pathMakefile
File metadata and controls
34 lines (27 loc) · 716 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
33
34
# Commands
MAKE=make
# Special rules and targets
.PHONY: all check clean help
# Rules and targets
all:
@cd src/ && $(MAKE)
@cp -f src/tracker ./
check: all
@cp tracker test/
@cd test/ && $(MAKE)
format:
clang-format -i -style=file src/*.[ch] include/*.h
tidy:
clang-tidy src/*.c -config="" -- -std=c11 -Iinclude
clean:
@cd src/ && $(MAKE) clean
@cd test/ && $(MAKE) clean
@rm -f tracker *~ .*~
help:
@echo "Usage:"
@echo " make [all]\t\tBuild all"
@echo " make check\t\tRun all the tests"
@echo " make format\t\tReformat the code"
@echo " make tidy\t\tPerform static-analysis on the code"
@echo " make clean\t\tRemove all files generated by make"
@echo " make help\t\tDisplay this help"