summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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