Merge pull request #8 from rootfs/makefile-fix

tune Makefile: clean binary; make static binary
This commit is contained in:
Huamin Chen 2018-01-18 09:02:05 -05:00 committed by GitHub
commit dfee050620
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,7 +25,7 @@ test:
rbdplugin:
if [ ! -d ./vendor ]; then dep ensure; fi
go build -i -o _output/rbdplugin ./rbd
CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static"' -i -o _output/rbdplugin ./rbd
container: rbdplugin
cp _output/rbdplugin deploy/docker
@ -33,4 +33,5 @@ container: rbdplugin
clean:
go clean -r -x
rm -f deploy/docker/rbdplugin
-rm -rf _output