Last change
on this file since 800 was 800, checked in by koizumi.aoi, 2 years ago |
dev: move contrib/znc-import.go to cmd/soju-znc-import
|
File size:
784 bytes
|
Line | |
---|
1 | GO ?= go
|
---|
2 | RM ?= rm
|
---|
3 | SCDOC ?= scdoc
|
---|
4 | GOFLAGS ?= -v
|
---|
5 | PREFIX ?= /usr/local
|
---|
6 | BINDIR ?= bin
|
---|
7 | MANDIR ?= share/man
|
---|
8 |
|
---|
9 | all: soju sojuctl doc/soju.1
|
---|
10 |
|
---|
11 | soju:
|
---|
12 | $(GO) build $(GOFLAGS) ./cmd/soju
|
---|
13 | sojuctl:
|
---|
14 | $(GO) build $(GOFLAGS) ./cmd/sojuctl
|
---|
15 | soju-znc-import:
|
---|
16 | $(GO) build $(GOFLAGS) ./cmd/soju-znc-import
|
---|
17 | doc/soju.1: doc/soju.1.scd
|
---|
18 | $(SCDOC) <doc/soju.1.scd >doc/soju.1
|
---|
19 | clean:
|
---|
20 | $(RM) -f soju sojuctl doc/soju.1
|
---|
21 | install:
|
---|
22 | mkdir -p $(DESTDIR)$(PREFIX)/$(BINDIR)
|
---|
23 | mkdir -p $(DESTDIR)$(PREFIX)/$(MANDIR)/man1
|
---|
24 | mkdir -p $(DESTDIR)/etc/soju
|
---|
25 | mkdir -p $(DESTDIR)/var/lib/soju
|
---|
26 | cp -f soju sojuctl $(DESTDIR)$(PREFIX)/$(BINDIR)
|
---|
27 | cp -f doc/soju.1 $(DESTDIR)$(PREFIX)/$(MANDIR)/man1
|
---|
28 | [ -f $(DESTDIR)/etc/soju/config ] || cp -f config.in $(DESTDIR)/etc/soju/config
|
---|
29 |
|
---|
30 | .PHONY: soju sojuctl soju-znc-import clean install
|
---|
Note:
See
TracBrowser
for help on using the repository browser.