Add tools to Makefile

This commit is contained in:
Ryan McGuire 2024-12-16 14:21:59 -05:00
parent 9b61e5d0ea
commit 62abe2caab

View File

@ -10,10 +10,14 @@ GO_FORMATTER := gofumpt
IS_GNU_SED := $(shell sed --version >/dev/null 2>&1 && echo true || echo false)
SED_INLINE := $(if $(filter true,$(IS_GNU_SED)),-i,-i '')
.PHONY: all schema generate test build install clean
.PHONY: all tools schema generate test build install clean
# Default target
all: schema generate test build install
all: tools schema generate test build install
tools:
go install golang.org/x/tools/cmd/stringer
go install github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen
# Retrieve and prepare schema
schema: