forked from fluffle/goirc
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
61 lines (49 loc) · 1.37 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# 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.
include $(GOROOT)/src/Make.inc
TARG=rbot
GOFILES=rbot.go handler.go auth.go cmd-access.go cmd-admin.go cmd-op.go cmd-google.go stream.go
pkgdir=$(QUOTED_GOROOT)/pkg/$(GOOS)_$(GOARCH)
PREREQ=$(pkgdir)/github.com/fluffle/goirc/event.a $(pkgdir)/github.com/fluffle/goirc/client.a $(pkgdir)/goconfig.a
all: rbot.conf auth.conf
.PHONY: event client goconfig
$(pkgdir)/github.com/fluffle/goirc/event.a: event
@true
$(pkgdir)/github.com/fluffle/goirc/client.a: client
@true
$(pkgdir)/goconfig.a: goconfig
@true
event:
$(MAKE) -sC event install
client:
$(MAKE) -sC client install
goconfig:
$(MAKE) -sC goconfig install
include $(GOROOT)/src/Make.cmd
rbot.conf: rbot.conf.example
@if [ -f $@ ] ; then \
echo "rbot.conf exists, but rbot.conf.example is newer." ; \
else \
echo cp $< $@ ; \
cp $< $@ ; \
fi
auth.conf: auth.conf.example
@if [ -f $@ ] ; then \
echo "auth.conf exists, but auth.conf.example is newer." ; \
else \
echo cp $< $@ ; \
cp $< $@ ; \
fi
clean: clean-deps
clean-deps:
$(MAKE) -C event clean
$(MAKE) -C client clean
$(MAKE) -C goconfig clean
nuke: nuke-deps
nuke-deps:
$(MAKE) -C event nuke
$(MAKE) -C client nuke
$(MAKE) -C goconfig nuke
uninstall:
@echo Perhaps you meant \"make nuke\"