@@ -29,9 +29,10 @@ COVERAGE?=0
2929COVERAGE_MODE? =atomic
3030COVERAGE_WD? ="."
3131BOOTSTRAP_ARGS? =
32+ GOTAGS? =
3233
3334ifeq ($(WITH_DPDK ) , true)
34- GOTAGS = -tags dpdk
35+ GOTAGS+ = dpdk
3536endif
3637
3738.PHONY : all
@@ -53,17 +54,17 @@ all: install
5354 gofmt -w -s statics/bindata.go
5455
5556.compile :
56- ${GOPATH} /bin/govendor install -ldflags=" -X github.com/skydive-project/skydive/version.Version=${VERSION} " ${GOFLAGS} ${GOTAGS} ${VERBOSE_FLAGS} +local
57+ ${GOPATH} /bin/govendor install -ldflags=" -X github.com/skydive-project/skydive/version.Version=${VERSION} " ${GOFLAGS} -tags= " ${GOTAGS} " ${VERBOSE_FLAGS} +local
5758
5859install : govendor genlocalfiles dpdk.build contribs .compile
5960
6061build : govendor genlocalfiles dpdk.build contribs
61- ${GOPATH} /bin/govendor build -ldflags=" -X github.com/skydive-project/skydive/version.Version=${VERSION} " ${GOFLAGS} ${GOTAGS} ${VERBOSE_FLAGS} +local
62+ ${GOPATH} /bin/govendor build -ldflags=" -X github.com/skydive-project/skydive/version.Version=${VERSION} " ${GOFLAGS} -tags= " ${GOTAGS} " ${VERBOSE_FLAGS} +local
6263
63- static : govendor genlocalfiles
64+ static : # govendor genlocalfiles
6465 rm -f $$ GOPATH/bin/skydive
65- test -f /etc/redhat-release && govendor install -tags netgo --ldflags ' -extldflags "-static /usr/lib64/libz.a /usr/lib64/liblzma.a /usr/lib64/libm.a"' ${VERBOSE_FLAGS} +local || true
66- test -f /etc/debian_version && govendor install -tags netgo --ldflags ' -extldflags "-static /usr/lib/x86_64-linux-gnu/libz.a /usr/lib/x86_64-linux-gnu/liblzma.a /usr/lib/x86_64-linux-gnu/libicuuc.a /usr/lib/x86_64-linux-gnu/libicudata.a /usr/lib/x86_64-linux-gnu/libxml2.a /usr/lib/x86_64-linux-gnu/libc.a /usr/lib/x86_64-linux-gnu/libdl.a /usr/lib/x86_64-linux-gnu/libpthread.a /usr/lib/x86_64-linux-gnu/libc++.a /usr/lib/x86_64-linux-gnu/libm.a"' ${VERBOSE_FLAGS} +local || true
66+ test -f /etc/redhat-release && govendor install -tags netgo --ldflags ' -extldflags "-static /usr/lib64/libz.a /usr/lib64/liblzma.a /usr/lib64/libm.a"' ${VERBOSE_FLAGS} -tags " ${GOTAGS} " +local || true
67+ test -f /etc/debian_version && govendor install -tags netgo --ldflags ' -extldflags "-static /usr/lib/x86_64-linux-gnu/libz.a /usr/lib/x86_64-linux-gnu/liblzma.a /usr/lib/x86_64-linux-gnu/libicuuc.a /usr/lib/x86_64-linux-gnu/libicudata.a /usr/lib/x86_64-linux-gnu/libxml2.a /usr/lib/x86_64-linux-gnu/libc.a /usr/lib/x86_64-linux-gnu/libdl.a /usr/lib/x86_64-linux-gnu/libpthread.a /usr/lib/x86_64-linux-gnu/libc++.a /usr/lib/x86_64-linux-gnu/libm.a"' ${VERBOSE_FLAGS} -tags " ${GOTAGS} " +local || true
6768
6869contribs :
6970 $(MAKE ) -C contrib/snort
@@ -86,7 +87,7 @@ test.functionals.cleanup:
8687 rm -f tests/functionals
8788
8889test.functionals.compile : govendor genlocalfiles
89- ${GOPATH} /bin/govendor test -tags " ${TAGS } test" ${GOFLAGS} ${VERBOSE_FLAGS} -timeout ${TIMEOUT} -c -o tests/functionals ./tests/
90+ ${GOPATH} /bin/govendor test -tags " ${GOTAGS } test" ${GOFLAGS} ${VERBOSE_FLAGS} -timeout ${TIMEOUT} -c -o tests/functionals ./tests/
9091
9192test.functionals.run :
9293 cd tests && sudo -E ./functionals ${VERBOSE_TESTS_FLAGS} -test.timeout ${TIMEOUT} ${ARGS}
@@ -116,12 +117,12 @@ ifeq ($(COVERAGE), true)
116117 for pkg in ${UT_PACKAGES}; do \
117118 if [ -n "$$pkg" ]; then \
118119 coverfile="${COVERAGE_WD}/$$(echo $$pkg | tr / -).cover"; \
119- ${GOPATH}/bin/govendor test -tags "${TAGS } test" -covermode=${COVERAGE_MODE} -coverprofile="$$coverfile" ${VERBOSE_FLAGS} -timeout ${TIMEOUT} $$pkg; \
120+ ${GOPATH}/bin/govendor test -tags "${GOTAGS } test" -covermode=${COVERAGE_MODE} -coverprofile="$$coverfile" ${VERBOSE_FLAGS} -timeout ${TIMEOUT} $$pkg; \
120121 fi; \
121122 done
122123else
123124 set -v ; \
124- ${GOPATH}/bin/govendor test -tags "${TAGS } test" ${GOFLAGS} ${VERBOSE_FLAGS} -timeout ${TIMEOUT} ${UT_PACKAGES}
125+ ${GOPATH}/bin/govendor test -tags "${GOTAGS } test" ${GOFLAGS} ${VERBOSE_FLAGS} -timeout ${TIMEOUT} ${UT_PACKAGES}
125126endif
126127
127128govendor :
0 commit comments