From 8759523157afb38f8565687ebd0e1f29a1af3e42 Mon Sep 17 00:00:00 2001 From: JP Appel Date: Fri, 13 Sep 2024 14:32:01 -0400 Subject: Add makefile and service --- Makefile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..edd4485 --- /dev/null +++ b/Makefile @@ -0,0 +1,25 @@ +BIN:= nonsense-time +SERVICE:= nonsense-time.service + +.PHONY: all test clean build install info + +all: build + +build: $(BIN) + +install: $(BIN) + cp $(BIN) /usr/bin + cp + +test: + go test ./... + +clean: + go mod tidy + +info: + @echo "BIN: $(BIN)" + @echo "SERVICE: $(SERVICE)" + +nonsense-time: + go build . -- cgit v1.2.3