From aa625653d3e01e2f2377b66c21e5057486ad905b Mon Sep 17 00:00:00 2001 From: "T.J. Yang" Date: Wed, 4 Nov 2015 06:28:57 -0600 Subject: [PATCH] adding Makefile to auotomate the gogs build process --- Makefile | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 000000000..259d58e43 --- /dev/null +++ b/Makefile @@ -0,0 +1,29 @@ +# To automake gogs build process. +# Makefile copiedfrom https://github.com/vmware/govmomi project and modified for gos +.PHONY: test + +all: check test + +check: goimports govet + +goimports: + @echo checking go imports... + @! goimports -d . 2>&1 | egrep -v '^$$' + +govet: + @echo checking go vet... + @go tool vet -structtags=false -methods=false . + +test: + go get + go test -v $(TEST_OPTS) ./... + +build: + go build -x github.com/gogits/gogs + + +install: + go install github.com/gogits/gogs + +clean: + rm gogs