~dricottone/nspotify

ref: 8475ba6f72670f2b684c04aa95ffb09cbb3257ab nspotify/Makefile -rw-r--r-- 497 bytes
8475ba6fDominic Ricottone Initial commit 5 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
go.mod:
	go mod init git.dominic-ricottone.com/~dricottone/nspotify
	go get github.com/zmb3/spotify/v2
	go get github.com/sirupsen/logrus
	go get golang.org/x/oauth2
	go get github.com/rivo/tview

GO_SRC!=find * -type f -name '*.go'

GO_LDFLAGS:=
GO_LDFLAGS+=-X main.CLIENTID=$(file < clientid.txt)
GO_LDFLAGS+=-X main.CLIENTSECRET=$(file < clientsecret.txt)

nspotify: go.mod $(GO_SRC)
	go build -ldflags "$(GO_LDFLAGS)" .

build: nspotify

clean:
	rm -f go.mod nspotify

.PHONY: run build clean