1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-12-04 01:59:54 +00:00
mycorrhiza/Makefile
Umar Getagazov 8850b50624 Get version from the help
I'm going to get executed for this crime
2022-09-14 03:18:02 +03:00

21 lines
434 B
Makefile

.POSIX:
.SUFFIXES:
PREFIX=/usr/local
BINDIR=$(PREFIX)/bin
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)$(BINDIR) $(DESTDIR)$(MANDIR)/man1
install -m755 mycorrhiza $(DESTDIR)$(BINDIR)/mycorrhiza
install -m644 help/mycorrhiza.1 $(DESTDIR)$(MANDIR)/man1/mycorrhiza.1
.PHONY: all mycorrhiza install