Skip to content

Commit

Permalink
update makefile for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanielc committed Oct 22, 2015
1 parent 971f995 commit f58cfaf
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,19 @@ build: prepare
dist: prepare
rm -rf $(DIST_DIR)
mkdir $(DIST_DIR)
gox -ldflags="$(LDFLAGS)" -osarch="$(OS_ARCH)" -output "$(DIST_DIR)/{{.Dir}}_$(VERSION)_{{.OS}}_{{.Arch}}" ./cmd/kapacitor
gox -ldflags="$(LDFLAGS)" -osarch="$(OS_ARCH)" -output "$(DIST_DIR)/{{.Dir}}_$(VERSION)_{{.OS}}_{{.Arch}}" ./cmd/kapacitord
gox -ldflags="$(LDFLAGS)" -osarch="$(OS_ARCH)" -output "$(DIST_DIR)/{{.Dir}}_$(VERSION)_{{.OS}}_{{.Arch}}" ./cmd/kapacitor ./cmd/kapacitord
#gox -ldflags="$(LDFLAGS)" -osarch="$(OS_ARCH)" -output "$(DIST_DIR)/{{.Dir}}_$(VERSION)_{{.OS}}_{{.Arch}}" ./cmd/kapacitord

prepare:
release: dist
ghr -u influxdb -r kapacitor $(SHORT_VERSION) dist/

update:
$(GO) get -u -t ./...

prepare:
$(GO) get -t ./...
$(GO) get github.com/mitchellh/gox
$(GO) get github.com/tcnksm/ghr

test: prepare
$(GO) tool vet --composites=false ./
Expand Down

0 comments on commit f58cfaf

Please sign in to comment.