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

23 lines
737 B
Makefile
Raw Normal View History

2014-12-14 01:05:15 +01:00
all: mumbledj
2015-07-30 18:12:16 +02:00
mumbledj: main.go commands.go parseconfig.go strings.go service.go service_youtube.go songqueue.go cache.go web.go
if [ ! -f $(GOPATH)/bin/goop ]; then go get github.com/nitrous-io/goop; fi;
2015-02-07 23:09:05 +01:00
rm -rf Goopfile.lock
goop install
goop go build
2014-12-14 01:05:15 +01:00
clean:
rm -f mumbledj*
2014-12-14 01:05:15 +01:00
install:
2014-12-14 01:24:10 +01:00
mkdir -p ~/.mumbledj/config
mkdir -p ~/.mumbledj/songs
2015-07-29 03:04:32 +02:00
mkdir -p ~/.mumbledj/web
if [ -a ~/.mumbledj/config/mumbledj.gcfg ]; then mv ~/.mumbledj/config/mumbledj.gcfg ~/.mumbledj/config/mumbledj_backup.gcfg; fi;
cp -u config.gcfg ~/.mumbledj/config/mumbledj.gcfg
2015-07-30 16:54:46 +02:00
cp -u index.html ~/.mumbledj/web/index.html
if [ -d ~/bin ]; then cp -f mumbledj* ~/bin/mumbledj; else sudo cp -f mumbledj* /usr/local/bin/mumbledj; fi;
2015-01-05 21:05:20 +01:00
build:
goop go build