forked from acooks/jittertrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (30 loc) · 1.05 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
SUBDIRS = backend frontend docs
CLEANDIRS = $(SUBDIRS:%=clean-%)
.PHONY: all $(SUBDIRS)
all: $(SUBDIRS)
@echo "Done."
$(SUBDIRS): %:
@echo "Making $@"
@$(MAKE) --silent -C $@
update-fossa:
git subtree split --prefix deps/fossa --annotate='split ' --rejoin
git subtree pull --prefix deps/fossa https://github.com/cesanta/fossa master --squash
update-cbuffer:
git subtree split --prefix deps/cbuffer --annotate='split ' --rejoin
git subtree pull --prefix deps/cbuffer https://github.com/acooks/cbuffer.git master --squash
# Remember to add the coverity bin directory to your PATH
coverity-build: $(CLEANDIRS)
cov-build --dir cov-int make backend
@tar caf jittertrap-coverity-build.lzma cov-int
@echo Coverity build archive: jittertrap-coverity-build.lzma
coverity-clean:
rm -rf cov-int jittertrap-coverity-build.lzma
cppcheck:
cppcheck --enable=style,warning,performance,portability backend/
#cppcheck deps/fossa/fossa.c
clang-analyze:
scan-build make backend
clean: $(CLEANDIRS)
$(CLEANDIRS):
@echo "Cleaning $@"
@$(MAKE) --silent -C $(@:clean-%=%) clean