2009-11-29 20:23:15 +00:00
|
|
|
# Copyright 2009 The Go Authors. All rights reserved.
|
|
|
|
# Use of this source code is governed by a BSD-style
|
|
|
|
# license that can be found in the LICENSE file.
|
|
|
|
|
2010-08-29 20:24:47 +00:00
|
|
|
include $(GOROOT)/src/Make.inc
|
2009-11-29 20:23:15 +00:00
|
|
|
|
2010-10-13 19:10:24 +00:00
|
|
|
TARG=rbot
|
2011-07-20 10:25:58 +00:00
|
|
|
GOFILES=rbot.go handler.go auth.go cmd-access.go cmd-admin.go cmd-op.go cmd-google.go stream.go
|
2011-04-11 00:46:47 +00:00
|
|
|
pkgdir=$(QUOTED_GOROOT)/pkg/$(GOOS)_$(GOARCH)
|
|
|
|
PREREQ=$(pkgdir)/github.com/fluffle/goirc/client.a $(pkgdir)/goconfig.a
|
2009-11-29 20:23:15 +00:00
|
|
|
|
2011-04-11 00:46:47 +00:00
|
|
|
all: rbot.conf auth.conf
|
2009-11-29 20:23:15 +00:00
|
|
|
|
2011-04-09 04:52:28 +00:00
|
|
|
.PHONY: client goconfig
|
|
|
|
|
2011-04-11 00:46:47 +00:00
|
|
|
$(pkgdir)/github.com/fluffle/goirc/client.a: client
|
|
|
|
@true
|
|
|
|
$(pkgdir)/goconfig.a: goconfig
|
|
|
|
@true
|
2011-04-09 04:52:28 +00:00
|
|
|
|
|
|
|
client:
|
2011-04-11 00:46:47 +00:00
|
|
|
$(MAKE) -sC client install
|
2011-04-09 04:52:28 +00:00
|
|
|
goconfig:
|
2011-04-11 00:46:47 +00:00
|
|
|
$(MAKE) -sC goconfig install
|
|
|
|
|
|
|
|
include $(GOROOT)/src/Make.cmd
|
2010-10-14 00:09:48 +00:00
|
|
|
|
|
|
|
rbot.conf: rbot.conf.example
|
|
|
|
@if [ -f $@ ] ; then \
|
|
|
|
echo "rbot.conf exists, but rbot.conf.example is newer." ; \
|
|
|
|
else \
|
|
|
|
echo cp $< $@ ; \
|
|
|
|
cp $< $@ ; \
|
|
|
|
fi
|
2010-10-16 19:38:40 +00:00
|
|
|
|
|
|
|
auth.conf: auth.conf.example
|
|
|
|
@if [ -f $@ ] ; then \
|
|
|
|
echo "auth.conf exists, but auth.conf.example is newer." ; \
|
|
|
|
else \
|
|
|
|
echo cp $< $@ ; \
|
|
|
|
cp $< $@ ; \
|
|
|
|
fi
|
2011-04-11 00:46:47 +00:00
|
|
|
|
|
|
|
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\"
|