Skip to content
This repository has been archived by the owner on Sep 26, 2021. It is now read-only.

Commit

Permalink
Merge pull request #4414 from nogoegst/go-get-cmd
Browse files Browse the repository at this point in the history
Move cmd files under cmd/docker-machine to make it go-install-able
  • Loading branch information
dgageot committed Mar 14, 2018
2 parents 31e63bb + 3b022ac commit 51ed7e7
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion .gitignore
@@ -1,4 +1,3 @@
docker-machine*
*.log
*.iml
.idea/
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Expand Up @@ -10,7 +10,7 @@ environment:
clone_folder: c:\gopath\src\github.com\docker\machine

build_script:
- go build -i -o ./bin/docker-machine.exe ./cmd/machine.go
- go build -i -o ./bin/docker-machine.exe ./cmd/docker-machine

test_script:
- powershell -Command go test -v ./libmachine/shell
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions mk/build.mk
Expand Up @@ -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:
Expand All @@ -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))

0 comments on commit 51ed7e7

Please sign in to comment.