23 lines
865 B
Makefile
23 lines
865 B
Makefile
all: mumbledj
|
|
|
|
mumbledj: main.go commands.go parseconfig.go strings.go service.go youtube_dl.go service_youtube.go service_soundcloud.go service_mixcloud.go songqueue.go cache.go
|
|
go get github.com/karmakaze/goop
|
|
rm -rf Goopfile.lock
|
|
goop install
|
|
goop go build
|
|
|
|
clean:
|
|
rm -f mumbledj*
|
|
|
|
install:
|
|
mkdir -p ~/.mumbledj/config
|
|
mkdir -p ~/.mumbledj/songs
|
|
if [ -f ~/.mumbledj/config/mumbledj.gcfg ]; then mv ~/.mumbledj/config/mumbledj.gcfg ~/.mumbledj/config/mumbledj_backup.gcfg; fi;
|
|
cp -u config.gcfg ~/.mumbledj/config/mumbledj.gcfg
|
|
sed -i 's/YouTube = \"/YouTube = \"'$(YOUTUBE_API_KEY)'/' ~/.mumbledj/config/mumbledj.gcfg
|
|
sed -i 's/SoundCloud = \"/SoundCloud = \"'$(SOUNDCLOUD_API_KEY)'/' ~/.mumbledj/config/mumbledj.gcfg
|
|
if [ -d ~/bin ]; then cp -f mumbledj* ~/bin/mumbledj; else sudo cp -f mumbledj* /usr/local/bin/mumbledj; fi;
|
|
|
|
build:
|
|
goop go build
|