Last change
on this file since 602 was 530, checked in by hubert, 4 years ago |
Don't build soju when calling "make install"
Otherwise soju would be rebuilt as the user who runs "make install"
(typically root).
|
File size:
666 bytes
|
Line | |
---|
1 | .POSIX:
|
---|
2 | .SUFFIXES:
|
---|
3 |
|
---|
4 | GO = go
|
---|
5 | RM = rm
|
---|
6 | SCDOC = scdoc
|
---|
7 | GOFLAGS =
|
---|
8 | PREFIX = /usr/local
|
---|
9 | BINDIR = bin
|
---|
10 | MANDIR = share/man
|
---|
11 |
|
---|
12 | all: soju sojuctl doc/soju.1
|
---|
13 |
|
---|
14 | soju:
|
---|
15 | $(GO) build $(GOFLAGS) ./cmd/soju
|
---|
16 | sojuctl:
|
---|
17 | $(GO) build $(GOFLAGS) ./cmd/sojuctl
|
---|
18 | doc/soju.1: doc/soju.1.scd
|
---|
19 | $(SCDOC) <doc/soju.1.scd >doc/soju.1
|
---|
20 |
|
---|
21 | clean:
|
---|
22 | $(RM) -rf soju sojuctl doc/soju.1
|
---|
23 | install:
|
---|
24 | mkdir -p $(DESTDIR)$(PREFIX)/$(BINDIR)
|
---|
25 | mkdir -p $(DESTDIR)$(PREFIX)/$(MANDIR)/man1
|
---|
26 | mkdir -p $(DESTDIR)/etc/soju
|
---|
27 | mkdir -p $(DESTDIR)/var/lib/soju
|
---|
28 | cp -f soju sojuctl $(DESTDIR)$(PREFIX)/$(BINDIR)
|
---|
29 | cp -f doc/soju.1 $(DESTDIR)$(PREFIX)/$(MANDIR)/man1
|
---|
30 | cp -f config.in $(DESTDIR)/etc/soju/config
|
---|
31 |
|
---|
32 | .PHONY: soju sojuctl
|
---|
Note:
See
TracBrowser
for help on using the repository browser.