-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile.am
56 lines (50 loc) · 1.69 KB
/
Makefile.am
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
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = client
TESTS = \
test/sample.test
.PHONY: help
help:
@echo "Build targets:"
@echo " all Build mutated"
@echo " check Run mutated test-suite"
@echo " recheck Run only previously failed tests"
@echo ""
@echo "Clean targets:"
@echo " clean Remove built mutated files"
@echo " distclean Remove built mutated files and build-system files"
@echo " maintainer-clean Remove all derived files"
@echo ""
@echo "Development targets:"
@echo " format Format all the source code to project style"
@echo " clang-scan Run clang static analyzer over mutated"
@echo " ccpcheck Run ccpcheck static analyzer over mutated"
@echo " cscope Produce a csope file for mutated"
@echo " ctags Produce a (vi) ctags file for mutated"
@echo " tags Produce an emacs tag file for mutated"
@echo ""
@echo "Packaging targets:"
@echo " dist Package mutated into tarball for distribution"
@echo " install Build mutated and install on local system"
@echo " uninstall Remove previous install from local system"
@echo ""
.PHONY: format
format:
@list='$(SUBDIRS)'; for subdir in $$list; do \
find $$subdir -iregex '.*\.\(cc\|hh\)$$' -exec clang-format -i {} +; \
done
.PHONY: clang-scan
clang-scan:
@make clean
@scan-build ./configure
@scan-build make
.PHONY: cppcheck
cppcheck:
@cppcheck --std=c++11 \
--enable=warning \
--enable=performance \
--enable=portability \
--enable=style \
client 2> cppcheck.err 1>/dev/null
@echo "Finished! (check cppcheck.err)..."
@echo ""
@head cppcheck.err