Make it so one command builds everything

This commit is contained in:
raylu 2011-04-09 00:52:28 -04:00
parent a537d1a9f6
commit d38619843f
2 changed files with 9 additions and 3 deletions

View File

@ -9,7 +9,15 @@ GOFILES=rbot.go handler.go auth.go cmd-access.go cmd-admin.go cmd-op.go cmd-goog
include $(GOROOT)/src/Make.cmd include $(GOROOT)/src/Make.cmd
all: rbot.conf auth.conf .PHONY: client goconfig
all: rbot.conf auth.conf client goconfig
client:
$(MAKE) -C client install
goconfig:
$(MAKE) -C goconfig install
rbot.conf: rbot.conf.example rbot.conf: rbot.conf.example
@if [ -f $@ ] ; then \ @if [ -f $@ ] ; then \

View File

@ -9,8 +9,6 @@ Assuming you have go set up (http://golang.org/),
cd rbot cd rbot
git submodule init git submodule init
git submodule update git submodule update
gomake -C client install
gomake -C goconfig install
gomake gomake
rbot.conf and auth.conf will be copied. Configure those and then run the bot: rbot.conf and auth.conf will be copied. Configure those and then run the bot: