summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2023-04-18 21:00:30 +0200
committerxengineering <me@xengineering.eu>2023-04-18 21:00:30 +0200
commite7493cfd08c661adaf521114ac5ab3f1200234c0 (patch)
tree535212f1cf3ba6dc1ec9f8f004fe4bb2c2a653ca /Makefile
parentba1c1ea1a66bc73fef1d51a9bfc2b53414c81be9 (diff)
downloadlimox-e7493cfd08c661adaf521114ac5ab3f1200234c0.tar
limox-e7493cfd08c661adaf521114ac5ab3f1200234c0.tar.zst
limox-e7493cfd08c661adaf521114ac5ab3f1200234c0.zip
Add Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..701bfb5
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,22 @@
+DESTDIR= # leave empty for the current system or provide a fakeroot here
+PREFIX=/usr
+
+all: build/limox
+
+build:
+ mkdir build
+
+build/limox: build
+ go build -o $@ ./...
+
+.PHONY: clean debug install
+
+clean:
+ rm -rf build
+
+debug:
+ go run ./...
+
+install: build/limox
+ install -Dm 755 build/limox $(DESTDIR)$(PREFIX)/bin/limox
+ install -Dm 644 limox.desktop $(DESTDIR)$(PREFIX)/share/applications/limox.desktop