Move cmd files under cmd/docker-machine to make it go-install-able

Signed-off-by: Ivan Markin <sw@nogoegst.net>
This commit is contained in:
Ivan Markin
2018-03-04 19:18:10 +00:00
parent 2729200cfd
commit fe9351b257
4 changed files with 2 additions and 3 deletions

1
.gitignore vendored
View File

@@ -1,4 +1,3 @@
docker-machine*
*.log
*.iml
.idea/

View File

@@ -18,7 +18,7 @@ define gocross
$(GO) build \
-o $(PREFIX)/bin/$(PKG_NAME)-${os.$(1)}-${arch.$(2)}$(call extension,$(GOOS)) \
-a $(VERBOSE_GO) -tags "static_build netgo $(BUILDTAGS)" -installsuffix netgo \
-ldflags "$(GO_LDFLAGS) -extldflags -static" $(GO_GCFLAGS) ./cmd/machine.go;)
-ldflags "$(GO_LDFLAGS) -extldflags -static" $(GO_GCFLAGS) ./cmd/docker-machine;)
endef
build-clean:
@@ -31,6 +31,6 @@ $(PREFIX)/bin/$(PKG_NAME)$(call extension,$(GOOS)): $(shell find . -type f -name
$(GO) build \
-o $@ \
$(VERBOSE_GO) -tags "$(BUILDTAGS)" \
-ldflags "$(GO_LDFLAGS)" $(GO_GCFLAGS) ./cmd/machine.go
-ldflags "$(GO_LDFLAGS)" $(GO_GCFLAGS) ./cmd/docker-machine
build: $(PREFIX)/bin/$(PKG_NAME)$(call extension,$(GOOS))