From fd822c14d77d4fed505e475a6f04e8f539c7f96f Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Mon, 7 Nov 2016 13:41:47 +0100 Subject: [PATCH 1/2] Add "check" alias for testing Follows GNU Coding Standards, see https://www.gnu.org/prep/standards/html_node/Standard-Targets.html#Standard-Targets --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index f56c4c5181fb9..3a2f80053b5b5 100644 --- a/Makefile +++ b/Makefile @@ -62,6 +62,9 @@ lint: test: for PKG in $(PACKAGES); do go test -cover -coverprofile $$GOPATH/src/$$PKG/coverage.out $$PKG || exit 1; done; +# As for GNU Coding Standard +check: test + .PHONY: install install: $(BIN)/$(EXECUTABLE) cp $< $(GOPATH)/bin/ From 98effb662ebf05378ec123e306f923fa570a8832 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Mon, 7 Nov 2016 15:31:44 +0100 Subject: [PATCH 2/2] Hush dangerous GNU comment, mark "check" rule as phony --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3a2f80053b5b5..6cd94473eddde 100644 --- a/Makefile +++ b/Makefile @@ -62,7 +62,7 @@ lint: test: for PKG in $(PACKAGES); do go test -cover -coverprofile $$GOPATH/src/$$PKG/coverage.out $$PKG || exit 1; done; -# As for GNU Coding Standard +.PHONY: check check: test .PHONY: install