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

22 lines
558 B
Makefile
Raw 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
LDFLAGS=-X "github.com/bouncepaw/mycorrhiza/version.taggedRelease=$$(git describe --tags --abbrev=0)"
2022-03-24 15:42:55 +00:00
all: mycorrhiza
2022-03-24 15:42:55 +00:00
mycorrhiza:
$(GO) generate $(GOFLAGS)
2022-08-17 08:13:57 +00:00
CGO_ENABLED=0 $(GO) build -ldflags="$(LDFLAGS)" $(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