Skip to content

Commit

Permalink
Add Makefile to the project
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesboyne committed Mar 12, 2016
1 parent 1d28e5c commit 16e70e4
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
release:
@echo "[+] releasing $(VERSION)"
@echo "[+] re-generating"
@echo "[+] building"
@$(MAKE) build
@echo "[+] comitting"
@git tag $(VERSION)
@git release $(VERSION)
@echo "[+] complete"
.PHONY: release

test:
@go test
.PHONY: test

build:
@gox -os="linux darwin" ./...
@mv cmd_darwin_386 s3f_darwin_386
@mv cmd_darwin_amd64 s3f_darwin_amd64
@mv cmd_linux_386 s3f_linux_386
@mv cmd_linux_amd64 s3f_linux_amd64
@mv cmd_linux_arm s3f_linux_arm
.PHONY: build

clean:
@git clean -f
.PHONY: clean

0 comments on commit 16e70e4

Please sign in to comment.