Makefile: add vet target

This commit is contained in:
Yousong Zhou
2018-10-22 12:34:36 +00:00
parent 4f0b4ec7c9
commit 1ffc05de81
+3 -1
View File
@@ -51,12 +51,14 @@ build: prepare_dir fmt
done
test: prepare_dir
test:
@for PKG in $$( $(PKGS) | grep "$(filter-out $@,$(MAKECMDGOALS))" ); do \
echo $$PKG; \
$(GO_TEST) $$PKG; \
done
vet:
go vet ./...
cmd/%: prepare_dir fmt
$(GO_BUILD) -o $(BIN_DIR)/$(shell basename $@) $(REPO_PREFIX)/$@