1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-12-04 18:19:54 +00:00
mycorrhiza/Makefile

21 lines
434 B
Makefile
Raw Permalink Normal View History

.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
BINDIR=$(PREFIX)/bin
2022-03-24 15:42:55 +00:00
MANDIR=$(PREFIX)/share/man
GO=go
2022-03-24 15:42:55 +00:00
all: mycorrhiza
2022-03-24 15:42:55 +00:00
mycorrhiza:
$(GO) generate $(GOFLAGS)
CGO_ENABLED=0 $(GO) build $(GOFLAGS) -o mycorrhiza .
2022-03-24 15:42:55 +00:00
install:
mkdir -m755 -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1
install -m755 mycorrhiza $(DESTDIR)$(BINDIR)/mycorrhiza
2022-03-26 15:54:01 +00:00
install -m644 help/mycorrhiza.1 $(DESTDIR)$(MANDIR)/man1/mycorrhiza.1
2022-03-24 15:42:55 +00:00
.PHONY: all mycorrhiza install