forked from zeek/spicy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (33 loc) · 1.17 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
all: build
.PHONY: build doc
build:
@if [ -e build/Makefile ]; then $(MAKE) -C build; else true; fi
@if [ -e build/build.ninja ]; then ninja -C build; else true; fi
zeek-plugin:
@if [ -e build/Makefile ]; then $(MAKE) -C build zeek-plugin; else true; fi
@if [ -e build/build.ninja ]; then ninja -C build zeek-plugin; else true; fi
install:
@if [ -e build/Makefile ]; then $(MAKE) -C build install; else true; fi
@if [ -e build/build.ninja ]; then ninja -C build install; else true; fi
doc:
$(MAKE) -C doc
test:
@cat build/CMakeCache.txt | grep -q HAVE_JIT.*yes && cd tests && btest -j -f diag.log
@cat build/CMakeCache.txt | grep -q HAVE_JIT.*no && cd tests && btest -j -g no-jit -f diag.log
test-core:
@cd tests && btest -j -g spicy-core -f diag.log
clean:
@if [ -e build/Makefile ]; then $(MAKE) -C build clean; else true; fi
@if [ -e build/build.ninja ]; then ninja -C build clean; else true; fi
real-clean:
rm -rf build
format:
./scripts/run-clang-format
format-fixit:
./scripts/run-clang-format --fixit
tidy:
./scripts/run-clang-tidy -j 10 build
tidy-fixit:
./scripts/run-clang-tidy -j 10 --fixit build
./scripts/run-clang-format --fixit
check: test format tidy