~psic4t/qcard

ref: a443635a51727269891fd3b7e88c33d24f9edb19 qcard/Makefile -rw-r--r-- 452 bytes
a443635apsic4t really fix README 6 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
PREFIX  ?= /usr/local

qcal: clean
	GOOS=linux GOARCH=amd64 go build -o qcard -ldflags="-s -w"

linux-arm:
	GOOS=linux GOARCH=arm go build -o qcard -ldflags="-s -w"

darwin:	
	GOOS=darwin GOARCH=amd64 go build -o qcard -ldflags="-s -w"

windows:
	GOOS=windows GOARCH=amd64 go build -o qcard.exe -ldflags="-s -w"

clean:
	rm -f qcard

install: 
	install -d $(PREFIX)/bin/
	install -m 755 qcard $(PREFIX)/bin/qcard

uninstall:
	rm -f $(PREFIX)/bin/qcard