mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2025-03-03 02:10:11 +00:00

Go compiles everything statically, and resulting programs have no runtime dependencies. We don't depend on any dynamically linked library.
21 lines
423 B
Makefile
21 lines
423 B
Makefile
.POSIX:
|
|
.SUFFIXES:
|
|
|
|
PREFIX=/usr/local
|
|
SBINDIR=$(PREFIX)/sbin
|
|
MANDIR=$(PREFIX)/share/man
|
|
GO=go
|
|
|
|
all: mycorrhiza
|
|
|
|
mycorrhiza:
|
|
$(GO) generate $(GOFLAGS)
|
|
$(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
|