mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2024-12-12 05:20:26 +00:00
21 lines
437 B
Makefile
21 lines
437 B
Makefile
.POSIX:
|
|
.SUFFIXES:
|
|
|
|
PREFIX=/usr/local
|
|
SBINDIR=$(PREFIX)/sbin
|
|
MANDIR=$(PREFIX)/share/man
|
|
GO=go
|
|
|
|
all: mycorrhiza
|
|
|
|
mycorrhiza:
|
|
$(GO) generate $(GOFLAGS)
|
|
CGO_ENABLED=0 $(GO) build $(GOFLAGS) -o mycorrhiza .
|
|
|
|
install:
|
|
mkdir -m755 -p $(DESTDIR)$(SBINDIR) $(DESTDIR)$(MANDIR)/man1
|
|
install -m755 mycorrhiza $(DESTDIR)$(SBINDIR)/mycorrhiza
|
|
install -m644 doc/mycorrhiza.1 $(DESTDIR)$(MANDIR)/man1/mycorrhiza.1
|
|
|
|
.PHONY: all mycorrhiza install
|