From e7493cfd08c661adaf521114ac5ab3f1200234c0 Mon Sep 17 00:00:00 2001 From: xengineering Date: Tue, 18 Apr 2023 21:00:30 +0200 Subject: Add Makefile --- Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 -- cgit v1.2.3-70-g09d2