From 93698fb6b3a387d7b41d5a59d46155c1292ad487 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 8 Oct 2022 12:02:19 -0500 Subject: [PATCH] fix makefile to properly autobuild Signed-off-by: Jeff Carr --- Makefile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index e44c345..c65a044 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,16 @@ -# init the go mod files -init: - go mod init go-notify-helloworld +all: go.mod go mod tidy + go build + +# init the go mod files +go.mod: + go mod init go-notify-helloworld build: go build run: ./go-notify-helloworld + +clean: + rm -f go.* go-notify-helloworld