mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 10:46:58 +08:00
Makefile: add vet target
This commit is contained in:
@@ -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)/$@
|
||||
|
||||
Reference in New Issue
Block a user