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
RevLine 
[775]1GO ?= go
2RM ?= rm
3SCDOC ?= scdoc
[799]4GOFLAGS ?= -v
[775]5PREFIX ?= /usr/local
6BINDIR ?= bin
7MANDIR ?= share/man
[126]8
[169]9all: soju sojuctl doc/soju.1
[126]10
11soju:
12 $(GO) build $(GOFLAGS) ./cmd/soju
13sojuctl:
14 $(GO) build $(GOFLAGS) ./cmd/sojuctl
[800]15soju-znc-import:
16 $(GO) build $(GOFLAGS) ./cmd/soju-znc-import
[169]17doc/soju.1: doc/soju.1.scd
18 $(SCDOC) <doc/soju.1.scd >doc/soju.1
[126]19clean:
[775]20 $(RM) -f soju sojuctl doc/soju.1
[530]21install:
[126]22 mkdir -p $(DESTDIR)$(PREFIX)/$(BINDIR)
23 mkdir -p $(DESTDIR)$(PREFIX)/$(MANDIR)/man1
[506]24 mkdir -p $(DESTDIR)/etc/soju
25 mkdir -p $(DESTDIR)/var/lib/soju
[126]26 cp -f soju sojuctl $(DESTDIR)$(PREFIX)/$(BINDIR)
[169]27 cp -f doc/soju.1 $(DESTDIR)$(PREFIX)/$(MANDIR)/man1
[613]28 [ -f $(DESTDIR)/etc/soju/config ] || cp -f config.in $(DESTDIR)/etc/soju/config
[510]29
[800]30.PHONY: soju sojuctl soju-znc-import clean install
Note: See TracBrowser for help on using the repository browser.