aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
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 ./...