From 502b4bb3393461f035077e50c321c8e5ed4df129 Mon Sep 17 00:00:00 2001 From: Umar Getagazov Date: Thu, 24 Mar 2022 23:43:00 +0700 Subject: [PATCH] Use sbin instead of bin Go compiles everything statically, and resulting programs have no runtime dependencies. We don't depend on any dynamically linked library. --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 45d51aa..5a9e6a3 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ .SUFFIXES: PREFIX=/usr/local -BINDIR=$(PREFIX)/bin +SBINDIR=$(PREFIX)/sbin MANDIR=$(PREFIX)/share/man GO=go @@ -13,8 +13,8 @@ mycorrhiza: $(GO) build $(GOFLAGS) -o mycorrhiza . install: - mkdir -m755 -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1 - install -m755 mycorrhiza $(DESTDIR)$(BINDIR)/mycorrhiza + 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