forked from aregm/nff-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (29 loc) · 954 Bytes
/
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
# Copyright 2017 Intel Corporation.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
PATH_TO_MK = mk
SUBDIRS = nff-go-base dpdk test examples
DOC_TARGETS = flow packet
CI_TESTING_TARGETS = packet low common
TESTING_TARGETS = $(CI_TESTING_TARGETS) test/stability
all: $(SUBDIRS)
debug:
$(MAKE) all NFF_GO_DEBUG=y
dpdk: nff-go-base
test: dpdk
examples: dpdk
perf_testing:
$(MAKE) -C test perf_testing
.PHONY: testing $(TESTING_TARGETS)
.NOTPARALLEL: testing $(TESTING_TARGETS)
testing: $(TESTING_TARGETS)
.PHONY: citesting $(CI_TESTING_TARGETS)
.NOTPARALLEL: citesting $(CI_TESTING_TARGETS)
citesting: $(CI_TESTING_TARGETS)
$(TESTING_TARGETS):
$(MAKE) -C $@ testing
.PHONY: doc
doc: $(DOC_TARGETS)
mkdir doc
$(foreach package,$(DOC_TARGETS),godoc -analysis=type -analysis=pointer -html github.com/intel-go/nff-go/$(package) > doc/$(package).html;)
include $(PATH_TO_MK)/intermediate.mk