This repository has been archived on 2019-06-23. You can view files and clone it, but cannot push or open issues or pull requests.
mumbledj/Makefile
2015-02-03 10:56:07 -08:00

21 lines
584 B
Makefile

all: mumbledj
mumbledj: main.go commands.go parseconfig.go strings.go song.go playlist.go songqueue.go
go get github.com/nitrous-io/goop
goop update
goop go build .
clean:
rm -f mumbledj
install:
mkdir -p ~/.mumbledj/config
mkdir -p ~/.mumbledj/songs
if [ -a ~/.mumbledj/config/mumbledj.gcfg ]; then mv ~/.mumbledj/config/mumbledj.gcfg ~/.mumbledj/config/mumbledj_backup.gcfg; fi;
cp -u mumbledj.gcfg ~/.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 .