fuzzyworld

template / commit

`make clean` now removes file `dev-setup`, which was used to denote that the dev setup process has completed.

8678718936931aaaa298c9dbab879879e43ac793 · Pavel Safronov · 2023-08-29 13:48:26 -0700 · parents 60282699ccc1

`make clean` now removes file `dev-setup`, which was used to denote that the dev setup process has completed.
 Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Makefile b/Makefile
index af0747f..37bc82d 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,7 @@ VERSION=$(shell git describe --tags)
 LDFLAGS=-ldflags "-w -s -X main.Version=${VERSION}"
 
 all: build test lint
+all-clean: clean all

 
 dev-setup:
 	go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
@@ -19,6 +20,7 @@ prep: dev-setup
 clean:
 	go clean
 	go mod tidy
+	rm -f dev-setup

 
 build: prep
 	go build ${LDFLAGS} -o ${BINARY} .