Skip to content

Commit de5efe9

Browse files
committed
Updated Makefile
1 parent 0943ea5 commit de5efe9

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ check:
5454
gofmt -l ${GOFILES_NOVENDOR} | (! grep . -q) || (echo "Code differs from gofmt's style" && false)
5555
go vet ${GOFILES_GLIDE}
5656

57+
.PHONY: clean
58+
clean:
59+
rm -f ${BIN_DIR}/${BIN_FILE}*
60+
rm -rf "${BUILD_DIR}"
61+
5762
# Runs gofmt -w on the project's source code, modifying any files that do not
5863
# match its style.
5964
.PHONY: fmt
@@ -79,6 +84,14 @@ lint:
7984
package:
8085
debuild --preserve-env --preserve-envvar PATH -us -uc -d
8186

87+
.PHONY: release-build-github
88+
release-build-github:
89+
GOOS=linux GOARCH=amd64 make build-custom
90+
GOOS=linux GOARCH=386 make build-custom
91+
GOOS=linux GOARCH=arm make build-custom
92+
GOOS=darwin GOARCH=386 make build-custom
93+
GOOS=darwin GOARCH=amd64 make build-custom
94+
8295
.PHONY: cross-build
8396
cross-build:
8497
make repackage root=.. package=../$(BIN_FILE)_$(VERSION)_$(SYSTEM_ARCH).deb arch=386 os=linux

0 commit comments

Comments
 (0)