From 673f9d3835db18b5651fe6c8518229d993c7bc49 Mon Sep 17 00:00:00 2001 From: Ingo Oppermann Date: Fri, 9 Sep 2022 15:10:29 +0200 Subject: [PATCH] Add init command --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ae13f27d..9755c96e 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,12 @@ BINSUFFIX := $(shell if [ "${GOOS}" -a "${GOARCH}" ]; then echo "-${GOOS}-${GOAR all: build +## init: Install required apps +init: + go install honnef.co/go/tools/cmd/staticcheck@latest + go install github.com/swaggo/swag/cmd/swag@latest + go install github.com/99designs/gqlgen@latest + ## build: Build core (default) build: CGO_ENABLED=${CGO_ENABLED} GOOS=${GOOS} GOARCH=${GOARCH} go build -o core${BINSUFFIX} @@ -85,7 +91,7 @@ release_linux: docker: docker build -t core:$(SHORTCOMMIT) . -.PHONY: help build swagger test vet fmt vendor commit coverage lint release import update +.PHONY: help init build swagger test vet fmt vendor commit coverage lint release import update ## help: Show all commands help: Makefile