summaryrefslogtreecommitdiffstats
path: root/go/Makefile
diff options
context:
space:
mode:
authortv <tv@nomic.retiolum>2014-01-06 01:00:06 +0100
committertv <tv@nomic.retiolum>2014-01-06 01:00:06 +0100
commit89317ee561297b3626fa86db4951187bf8bccea1 (patch)
treea76770d2d2caa6895c3cd7c6da2b97b9b62e863d /go/Makefile
parentfbc2cf879ea76a590923fbcd4bf6150be0aad35c (diff)
go: add systemd foo
Diffstat (limited to 'go/Makefile')
-rw-r--r--go/Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/go/Makefile b/go/Makefile
new file mode 100644
index 00000000..6c827f2b
--- /dev/null
+++ b/go/Makefile
@@ -0,0 +1,10 @@
+help:;@grep -v ^help: Makefile
+
+install: \
+ /etc/systemd/system/go.service \
+ /etc/conf.d/go.env
+ systemctl daemon-reload
+
+/etc/%: etc/%
+ @! test -e $@ || { echo file already exists: $@; exit 23; }
+ cp $< $@