Add basic Makefile
This commit is contained in:
parent
166d8b0626
commit
549fbf62b1
27
Makefile
Normal file
27
Makefile
Normal file
@ -0,0 +1,27 @@
|
||||
.POSIX:
|
||||
.SUFFIXES:
|
||||
|
||||
GO = go
|
||||
RM = rm
|
||||
SCDOC = scdoc
|
||||
GOFLAGS =
|
||||
PREFIX = /usr/local
|
||||
BINDIR = bin
|
||||
MANDIR = share/man
|
||||
|
||||
all: soju sojuctl soju.1
|
||||
|
||||
soju:
|
||||
$(GO) build $(GOFLAGS) ./cmd/soju
|
||||
sojuctl:
|
||||
$(GO) build $(GOFLAGS) ./cmd/sojuctl
|
||||
soju.1: soju.1.scd
|
||||
$(SCDOC) <soju.1.scd >soju.1
|
||||
|
||||
clean:
|
||||
$(RM) -rf soju sojuctl soju.1
|
||||
install: all
|
||||
mkdir -p $(DESTDIR)$(PREFIX)/$(BINDIR)
|
||||
mkdir -p $(DESTDIR)$(PREFIX)/$(MANDIR)/man1
|
||||
cp -f soju sojuctl $(DESTDIR)$(PREFIX)/$(BINDIR)
|
||||
cp -f soju.1 $(DESTDIR)$(PREFIX)/$(MANDIR)/man1
|
Loading…
Reference in New Issue
Block a user