From aa26d6acf443b2c358257b34bfbda244c505972a Mon Sep 17 00:00:00 2001 From: CHIKAMATSU Naohiro Date: Tue, 26 Dec 2023 21:52:47 +0900 Subject: [PATCH] add: docker target and generate target --- Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 40aa761..4bd191e 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: build test clean changelog tools help +.PHONY: build test clean changelog tools help docker generate S3HUB = s3hub VERSION = $(shell git describe --tags --abbrev=0) @@ -20,7 +20,7 @@ build: ## Build binary clean: ## Clean project -rm -rf $(S3HUB) cover.out cover.html -test: ## Start test +test: ## Start unit test env GOOS=$(GOOS) $(GO_TEST) -cover $(GO_PKGROOT) -coverprofile=cover.out $(GO_TOOL) cover -html=cover.out -o cover.html @@ -32,6 +32,12 @@ tools: ## Install dependency tools $(GO_INSTALL) github.com/nao1215/hottest@latest $(GO_INSTALL) github.com/google/wire/cmd/wire@latest +generate: ## Generate code from templates + $(GO) generate ./... + +docker: ## Start docker (localstack) + docker compose up -d + .DEFAULT_GOAL := help help: @grep -E '^[0-9a-zA-Z_-]+[[:blank:]]*:.*?## .*$$' $(MAKEFILE_LIST) | sort \