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