Skip to content

Commit

Permalink
Improve makefile
Browse files Browse the repository at this point in the history
* Specify build output

* Correct phony instructions
  • Loading branch information
markelog committed Jun 10, 2019
1 parent 754fe0c commit d7f0686
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ ec-proxy_*
/bin/ec/ec
/bin/ec/ec-proxy
/bin/ec-proxy/ec-proxy
/build

# Ignore vendor folder
/vendor
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ integration: install
@env EC_PROXY_PLACE=$(tmp) EC_WITHOUT_SPINNER=true TEST_ALL=true go test -v ./bin/ec -timeout 50m

@rm -rf $(tmp)
.PHONY: int
.PHONY: integration

integration-ci:
$(eval tmp := $(TMPDIR)"eclectica")
Expand All @@ -48,13 +48,13 @@ integration-ci:

@rm -rf $(tmp)
@echo $(?)
.PHONY: int-ci
.PHONY: integration-ci

build:
@echo "[+] building"
@go get github.com/mitchellh/gox
@rm -rf ec_* ec-proxy_*
@gox -osarch="darwin/amd64 linux/amd64" ./...
@gox -osarch="darwin/amd64 linux/amd64" -output "build/{{.Dir}}_{{.OS}}_{{.Arch}}" ./...
.PHONY: build

tag:
Expand Down

0 comments on commit d7f0686

Please sign in to comment.