From 621e78947eb1c4607ce8e6bf5ce133d4927b3cf2 Mon Sep 17 00:00:00 2001 From: JP Appel Date: Sat, 5 Oct 2024 14:39:29 -0400 Subject: Update service to use correct templates --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index b6980df..c8ee401 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,7 @@ BIN:= nonsense-time SERVICE:= nonsense-time.service +STATIC := ./static/ +TEMPLATES := ./templates/ .PHONY: all test clean build install info @@ -8,7 +10,12 @@ all: build build: $(BIN) install: $(BIN) + rm -rf /usr/local/share/nonsense-time cp $(BIN) /usr/bin + cp $(SERVICE) /etc/systemd/system/ + mkdir /usr/local/share/nonsense-time + cp -r $(STATIC) /usr/local/share/nonsense-time + cp -r $(TEMPLATES) /usr/local/share/nonsense-time test: go test ./... -- cgit v1.2.3