Make the makefile make

This commit is contained in:
raylu 2011-04-10 20:46:47 -04:00
parent affc372b94
commit 8878b7c1d1
1 changed files with 24 additions and 5 deletions

View File

@ -6,18 +6,24 @@ include $(GOROOT)/src/Make.inc
TARG=rbot TARG=rbot
GOFILES=rbot.go handler.go auth.go cmd-access.go cmd-admin.go cmd-op.go cmd-google.go GOFILES=rbot.go handler.go auth.go cmd-access.go cmd-admin.go cmd-op.go cmd-google.go
pkgdir=$(QUOTED_GOROOT)/pkg/$(GOOS)_$(GOARCH)
PREREQ=$(pkgdir)/github.com/fluffle/goirc/client.a $(pkgdir)/goconfig.a
include $(GOROOT)/src/Make.cmd all: rbot.conf auth.conf
.PHONY: client goconfig .PHONY: client goconfig
all: rbot.conf auth.conf client goconfig $(pkgdir)/github.com/fluffle/goirc/client.a: client
@true
$(pkgdir)/goconfig.a: goconfig
@true
client: client:
$(MAKE) -C client install $(MAKE) -sC client install
goconfig: goconfig:
$(MAKE) -C goconfig install $(MAKE) -sC goconfig install
include $(GOROOT)/src/Make.cmd
rbot.conf: rbot.conf.example rbot.conf: rbot.conf.example
@if [ -f $@ ] ; then \ @if [ -f $@ ] ; then \
@ -34,3 +40,16 @@ auth.conf: auth.conf.example
echo cp $< $@ ; \ echo cp $< $@ ; \
cp $< $@ ; \ cp $< $@ ; \
fi fi
clean: clean-deps
clean-deps:
$(MAKE) -C client clean
$(MAKE) -C goconfig clean
nuke: nuke-deps
nuke-deps:
$(MAKE) -C client nuke
$(MAKE) -C goconfig nuke
uninstall:
@echo Perhaps you meant \"make nuke\"