dnote/Makefile
Michiel 5bde1d0c0d Travis integration. (#39)
* Added Travis integration.

* Added mousetrap for Windows.

* Removed go 1.6 from build.
2017-12-26 11:36:01 +11:00

28 lines
670 B
Makefile

release:
@echo "** Releasing version $(VERSION)..."
@echo "** Building..."
@$(MAKE) build
@echo "** Tagging and pushing..."
@git tag -a $(VERSION)
@git push --tags
.PHONY: release
build: get-deps install-gox
@$(GOPATH)/bin/gox -osarch="darwin/386 darwin/amd64 linux/386 linux/amd64 openbsd/386 openbsd/amd64 window/386 windows/amd64" -output="dnote-{{.OS}}-{{.Arch}}" ./...
.PHONY: build
get-deps:
@echo "** Downloading dependencies... **"
@go get -t ./...
@go get github.com/inconshreveable/mousetrap
.PHONY: get-deps
install-gox:
@echo "** Installing Gox... **"
@go get github.com/mitchellh/gox
.PHONY: install-gox
clean:
@git clean -f
.PHONY: clean