mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 19:10:21 +00:00
Merge pull request #8 from rootfs/makefile-fix
tune Makefile: clean binary; make static binary
This commit is contained in:
commit
dfee050620
3
Makefile
3
Makefile
@ -25,7 +25,7 @@ test:
|
|||||||
|
|
||||||
rbdplugin:
|
rbdplugin:
|
||||||
if [ ! -d ./vendor ]; then dep ensure; fi
|
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
|
container: rbdplugin
|
||||||
cp _output/rbdplugin deploy/docker
|
cp _output/rbdplugin deploy/docker
|
||||||
@ -33,4 +33,5 @@ container: rbdplugin
|
|||||||
|
|
||||||
clean:
|
clean:
|
||||||
go clean -r -x
|
go clean -r -x
|
||||||
|
rm -f deploy/docker/rbdplugin
|
||||||
-rm -rf _output
|
-rm -rf _output
|
||||||
|
Loading…
Reference in New Issue
Block a user