1
0
Fork 0
mirror of https://git.sr.ht/~psic4t/qcal synced 2025-02-22 15:23:58 +01:00
qcal/Makefile
2022-02-04 11:01:31 +01:00

23 lines
444 B
Makefile

PREFIX ?= /usr/local
qcal: clean
GOOS=linux GOARCH=amd64 go build -o qcal -ldflags="-s -w"
linux-arm:
GOOS=linux GOARCH=arm go build -o qcal -ldflags="-s -w"
darwin:
GOOS=darwin GOARCH=amd64 go build -o qcal -ldflags="-s -w"
windows:
GOOS=windows GOARCH=amd64 go build -o qcal.exe -ldflags="-s -w"
clean:
rm -f qcal
install:
install -d $(PREFIX)/bin/
install -m 755 qcal $(PREFIX)/bin/qcal
uninstall:
rm -f $(PREFIX)/bin/qcal