source: code/trunk/Makefile@ 800

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 
1GO ?= go
2RM ?= rm
3SCDOC ?= scdoc
4GOFLAGS ?= -v
5PREFIX ?= /usr/local
6BINDIR ?= bin
7MANDIR ?= share/man
8
9all: soju sojuctl doc/soju.1
10
11soju:
12 $(GO) build $(GOFLAGS) ./cmd/soju
13sojuctl:
14 $(GO) build $(GOFLAGS) ./cmd/sojuctl
15soju-znc-import:
16 $(GO) build $(GOFLAGS) ./cmd/soju-znc-import
17doc/soju.1: doc/soju.1.scd
18 $(SCDOC) <doc/soju.1.scd >doc/soju.1
19clean:
20 $(RM) -f soju sojuctl doc/soju.1
21install:
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.