2021-10-26 05:45:28 +00:00
|
|
|
.POSIX:
|
2022-03-24 15:42:55 +00:00
|
|
|
.SUFFIXES:
|
2021-05-27 10:17:42 +00:00
|
|
|
|
2022-03-24 15:42:55 +00:00
|
|
|
PREFIX=/usr/local
|
2022-03-24 16:43:00 +00:00
|
|
|
SBINDIR=$(PREFIX)/sbin
|
2022-03-24 15:42:55 +00:00
|
|
|
MANDIR=$(PREFIX)/share/man
|
|
|
|
GO=go
|
2021-11-10 14:05:33 +00:00
|
|
|
|
2022-03-24 15:42:55 +00:00
|
|
|
all: mycorrhiza
|
2021-11-10 12:50:54 +00:00
|
|
|
|
2022-03-24 15:42:55 +00:00
|
|
|
mycorrhiza:
|
|
|
|
$(GO) generate $(GOFLAGS)
|
2022-03-24 15:54:06 +00:00
|
|
|
$(GO) build $(GOFLAGS) -o mycorrhiza .
|
2021-11-10 14:05:33 +00:00
|
|
|
|
2022-03-24 15:42:55 +00:00
|
|
|
install:
|
2022-03-24 16:43:00 +00:00
|
|
|
mkdir -m755 -p $(DESTDIR)$(SBINDIR) $(DESTDIR)$(MANDIR)/man1
|
|
|
|
install -m755 mycorrhiza $(DESTDIR)$(SBINDIR)/mycorrhiza
|
2022-03-24 15:42:55 +00:00
|
|
|
install -m644 doc/mycorrhiza.1 $(DESTDIR)$(MANDIR)/man1/mycorrhiza.1
|
2021-11-10 12:50:54 +00:00
|
|
|
|
2022-03-24 15:42:55 +00:00
|
|
|
.PHONY: all mycorrhiza install
|