aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2025-12-17 10:27:19 +0100
committerPatrick Spek <p.spek@tyil.nl>2025-12-17 10:27:19 +0100
commit4e8290ced6d2ae91fd5f2c2d0070cf6934e787a5 (patch)
tree9533765c50d98e83392aef971684712f5a788379
parent63e2756b4724eed139f1ac56a40f10c15cc4dce7 (diff)
downloaddashlab-4e8290ced6d2ae91fd5f2c2d0070cf6934e787a5.tar.gz
dashlab-4e8290ced6d2ae91fd5f2c2d0070cf6934e787a5.tar.bz2
Add Makefile for easier buildingHEADmaster
-rw-r--r--.gitignore1
-rw-r--r--Makefile14
2 files changed, 15 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..1521c8b
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+dist
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..a8dd9f1
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,14 @@
+build:
+ mkdir -p -- dist
+ go build -o dist/dashlab *.go
+
+install: build
+ install --mode=755 --owner=root --group=root dist/dashlab /usr/bin/dashlab
+
+uninstall:
+ rm -fr -- /usr/bin/dashlab
+
+clean:
+ rm -fr -- dist
+
+.PHONY: build install uninstall clean