Remove duplication in make due to windows paths
parent
56a23cab4a
commit
76a8df226f
28
Makefile
28
Makefile
|
@ -127,6 +127,12 @@ endif
|
||||||
|
|
||||||
ifeq ($(GOOS),windows)
|
ifeq ($(GOOS),windows)
|
||||||
IS_EXE = .exe
|
IS_EXE = .exe
|
||||||
|
DIRSEP_ = \\
|
||||||
|
DIRSEP = $(strip $(DIRSEP_))
|
||||||
|
PATHSEP = ;
|
||||||
|
else
|
||||||
|
DIRSEP = /
|
||||||
|
PATHSEP = :
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
@ -239,28 +245,18 @@ extract:
|
||||||
pkg/minikube/assets/assets.go: $(shell find "deploy/addons" -type f)
|
pkg/minikube/assets/assets.go: $(shell find "deploy/addons" -type f)
|
||||||
ifeq ($(MINIKUBE_BUILD_IN_DOCKER),y)
|
ifeq ($(MINIKUBE_BUILD_IN_DOCKER),y)
|
||||||
$(call DOCKER,$(BUILD_IMAGE),/usr/bin/make $@)
|
$(call DOCKER,$(BUILD_IMAGE),/usr/bin/make $@)
|
||||||
else ifeq ($(GOOS),windows)
|
|
||||||
which go-bindata || GO111MODULE=off GOBIN="$(GOPATH)\bin" go get github.com/jteeuwen/go-bindata/...
|
|
||||||
PATH="$(PATH);$(GOPATH)\bin" go-bindata -nomemcopy -o $@ -pkg assets deploy/addons/...
|
|
||||||
-gofmt -s -w $@
|
|
||||||
else
|
|
||||||
which go-bindata || GO111MODULE=off GOBIN=$(GOPATH)/bin go get github.com/jteeuwen/go-bindata/...
|
|
||||||
PATH="$(PATH):$(GOPATH)/bin" go-bindata -nomemcopy -o $@ -pkg assets deploy/addons/...
|
|
||||||
-gofmt -s -w $@
|
|
||||||
endif
|
endif
|
||||||
|
which go-bindata || GO111MODULE=off GOBIN="$(GOPATH)$(DIRSEP)bin" go get github.com/jteeuwen/go-bindata/...
|
||||||
|
PATH="$(PATH)$(PATHSEP)$(GOPATH)$(DIRSEP)bin" go-bindata -nomemcopy -o $@ -pkg assets deploy/addons/...
|
||||||
|
-gofmt -s -w $@
|
||||||
|
|
||||||
pkg/minikube/translate/translations.go: $(shell find "translations/" -type f)
|
pkg/minikube/translate/translations.go: $(shell find "translations/" -type f)
|
||||||
ifeq ($(MINIKUBE_BUILD_IN_DOCKER),y)
|
ifeq ($(MINIKUBE_BUILD_IN_DOCKER),y)
|
||||||
$(call DOCKER,$(BUILD_IMAGE),/usr/bin/make $@)
|
$(call DOCKER,$(BUILD_IMAGE),/usr/bin/make $@)
|
||||||
else ifeq ($(GOOS),windows)
|
|
||||||
which go-bindata || GO111MODULE=off GOBIN="$(GOPATH)\bin" go get github.com/jteeuwen/go-bindata/...
|
|
||||||
PATH="$(PATH);$(GOPATH)\bin" go-bindata -nomemcopy -o $@ -pkg translate translations/...
|
|
||||||
-gofmt -s -w $@
|
|
||||||
else
|
|
||||||
which go-bindata || GO111MODULE=off GOBIN=$(GOPATH)/bin go get github.com/jteeuwen/go-bindata/...
|
|
||||||
PATH="$(PATH):$(GOPATH)/bin" go-bindata -nomemcopy -o $@ -pkg translate translations/...
|
|
||||||
-gofmt -s -w $@
|
|
||||||
endif
|
endif
|
||||||
|
which go-bindata || GO111MODULE=off GOBIN="$(GOPATH)$(DIRSEP)bin" go get github.com/jteeuwen/go-bindata/...
|
||||||
|
PATH="$(PATH)$(PATHSEP)$(GOPATH)$(DIRSEP)bin" go-bindata -nomemcopy -o $@ -pkg translate translations/...
|
||||||
|
-gofmt -s -w $@
|
||||||
@#golint: Json should be JSON (compat sed)
|
@#golint: Json should be JSON (compat sed)
|
||||||
@sed -i -e 's/Json/JSON/' $@ && rm -f ./-e
|
@sed -i -e 's/Json/JSON/' $@ && rm -f ./-e
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue