forked from zeek/zeek-agent-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
21 lines (16 loc) · 592 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Helper Makefile assuming build/ as the build directory, as configure does by default.
all: build
.PHONY: build install test
build:
@if [ -e build/Makefile ]; then $(MAKE) -j 4 -C build; else true; fi
@if [ -e build/build.ninja ]; then ninja -C build; else true; fi
install:
@if [ -e build/Makefile ]; then $(MAKE) -j 4 -C build install; else true; fi
@if [ -e build/build.ninja ]; then ninja -C build install; else true; fi
test:
@if command -v zeek >/dev/null 2>&1; then \
$(MAKE) -C zeek-agent test; \
$(MAKE) -C tests test; \
else \
$(MAKE) -C tests test-no-zeek; \
fi