File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 1414
1515IMAGE_NAME = quay.io/k8scsi/mock-driver
1616IMAGE_VERSION = canary
17+ APP := ./bin/mock
18+
1719
1820ifdef V
1921TESTARGS = -v -args -alsologtostderr -v 5
2022else
2123TESTARGS =
2224endif
2325
24- all : mock
26+ all : $( APP )
2527
26- mock :
28+ $( APP ) :
2729 mkdir -p bin
28- CGO_ENABLED=0 GOOS=linux go build -a -ldflags ' -extldflags "-static"' -o ./bin/mock ./mock/main.go
30+ CGO_ENABLED=0 GOOS=linux go build -a -ldflags ' -extldflags "-static"' -o $( APP ) ./mock/main.go
2931
3032clean :
3133 rm -rf bin
3234
33- container : mock
35+ container : $( APP )
3436 docker build -f Dockerfile.mock -t $(IMAGE_NAME ) :$(IMAGE_VERSION ) .
3537
3638push : container
3739 docker push $(IMAGE_NAME ) :$(IMAGE_VERSION )
40+
41+ .PHONY : all clean container push
42+
You can’t perform that action at this time.
0 commit comments