summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVictor Morales <victor.morales@intel.com>2019-01-28 20:16:55 +0000
committerGerrit Code Review <gerrit@onap.org>2019-01-28 20:16:55 +0000
commitf2eca1cca86160a2087b6bcbb8581898f8e77b1e (patch)
treeede1e154a9444f5b4bb007dcc1238990ee95dc02 /src
parent468e208fbe3bcf2524d3aa8ceaabc4324f242b4b (diff)
parent6270bead9be7374c2196f699d57c76c051e17207 (diff)
Merge "Remove duplicate plugins make action"
Diffstat (limited to 'src')
-rw-r--r--src/k8splugin/Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/k8splugin/Makefile b/src/k8splugin/Makefile
index 751cd5f4..635c9155 100644
--- a/src/k8splugin/Makefile
+++ b/src/k8splugin/Makefile
@@ -15,9 +15,8 @@ export GO111MODULE=on
.PHONY: plugins
-all: clean
+all: clean plugins
CGO_ENABLED=1 GOOS=linux GOARCH=amd64
- @find plugins -type d -not -path plugins -exec sh -c "ls {}/plugin.go | xargs go build -buildmode=plugin -a -tags netgo -o $(basename {}).so" \;
@go build -a -tags netgo -o ./k8plugin ./cmd/main.go
# The following is done this way as each patch on CI runs build and each merge runs deploy. So for build we don't need to build binary and hence
@@ -47,7 +46,7 @@ plugins:
@find plugins -maxdepth 1 -type d -not -path plugins -exec sh -c "ls {}/plugin.go | xargs go build -buildmode=plugin -o $(basename {}).so" \;
clean:
- find . -name "*so" -delete
+ @find . -name "*so" -delete
@rm -f k8plugin
.PHONY: cover