diff options
author | xengineering <me@xengineering.eu> | 2023-04-18 21:00:30 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2023-04-18 21:00:30 +0200 |
commit | e7493cfd08c661adaf521114ac5ab3f1200234c0 (patch) | |
tree | 535212f1cf3ba6dc1ec9f8f004fe4bb2c2a653ca /Makefile | |
parent | ba1c1ea1a66bc73fef1d51a9bfc2b53414c81be9 (diff) | |
download | limox-e7493cfd08c661adaf521114ac5ab3f1200234c0.tar limox-e7493cfd08c661adaf521114ac5ab3f1200234c0.tar.zst limox-e7493cfd08c661adaf521114ac5ab3f1200234c0.zip |
Add Makefile
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 22 |
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 |