source: code/trunk/Makefile@ 168

Last change on this file since 168 was 126, checked in by contact, 5 years ago

Add basic Makefile

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