From d773383f702290eec25d8eb16e74daeb5c411d53 Mon Sep 17 00:00:00 2001 From: Christopher Allen Lane Date: Fri, 26 Aug 2022 13:09:40 -0400 Subject: [PATCH] fix(build): `Makefile` corrections - Fix an issue whereby `make clean` filed to remove assets created by `make generate`. - Fix a subsequent issue whereby `make generate` was being run too late in the `make build` target, which resulted in a build failure. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 469e1ae..8285a37 100644 --- a/Makefile +++ b/Makefile @@ -41,7 +41,7 @@ releases := \ ## build: build an executable for your architecture .PHONY: build -build: $(dist_dir) clean fmt lint vet vendor generate man +build: $(dist_dir) | clean generate fmt lint vet vendor man $(GO) build $(BUILD_FLAGS) -o $(dist_dir)/cheat $(cmd_dir) ## build-release: build release executables @@ -104,7 +104,7 @@ install: build ## clean: remove compiled executables .PHONY: clean clean: $(dist_dir) - $(RM) -f $(dist_dir)/* + $(RM) -f $(dist_dir)/* $(cmd_dir)/str_config.go $(cmd_dir)/str_usage.go ## distclean: remove the tags file .PHONY: distclean