Add init command
This commit is contained in:
parent
3b0a19e18a
commit
673f9d3835
1 changed files with 7 additions and 1 deletions
8
Makefile
8
Makefile
|
|
@ -6,6 +6,12 @@ BINSUFFIX := $(shell if [ "${GOOS}" -a "${GOARCH}" ]; then echo "-${GOOS}-${GOAR
|
||||||
|
|
||||||
all: build
|
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: Build core (default)
|
||||||
build:
|
build:
|
||||||
CGO_ENABLED=${CGO_ENABLED} GOOS=${GOOS} GOARCH=${GOARCH} go build -o core${BINSUFFIX}
|
CGO_ENABLED=${CGO_ENABLED} GOOS=${GOOS} GOARCH=${GOARCH} go build -o core${BINSUFFIX}
|
||||||
|
|
@ -85,7 +91,7 @@ release_linux:
|
||||||
docker:
|
docker:
|
||||||
docker build -t core:$(SHORTCOMMIT) .
|
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: Show all commands
|
||||||
help: Makefile
|
help: Makefile
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue