source: code/trunk/Makefile@ 228

Last change on this file since 228 was 169, checked in by contact, 5 years ago

Move man page to doc/

File size: 540 bytes
RevLine 
[126]1.POSIX:
2.SUFFIXES:
3
4GO = go
5RM = rm
6SCDOC = scdoc
7GOFLAGS =
8PREFIX = /usr/local
9BINDIR = bin
10MANDIR = share/man
11
[169]12all: soju sojuctl doc/soju.1
[126]13
14soju:
15 $(GO) build $(GOFLAGS) ./cmd/soju
16sojuctl:
17 $(GO) build $(GOFLAGS) ./cmd/sojuctl
[169]18doc/soju.1: doc/soju.1.scd
19 $(SCDOC) <doc/soju.1.scd >doc/soju.1
[126]20
21clean:
[169]22 $(RM) -rf soju sojuctl doc/soju.1
[126]23install: all
24 mkdir -p $(DESTDIR)$(PREFIX)/$(BINDIR)
25 mkdir -p $(DESTDIR)$(PREFIX)/$(MANDIR)/man1
26 cp -f soju sojuctl $(DESTDIR)$(PREFIX)/$(BINDIR)
[169]27 cp -f doc/soju.1 $(DESTDIR)$(PREFIX)/$(MANDIR)/man1
Note: See TracBrowser for help on using the repository browser.