mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2024-12-12 05:20:26 +00:00
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.
This commit is contained in:
parent
6826e93667
commit
502b4bb339
6
Makefile
6
Makefile
@ -2,7 +2,7 @@
|
|||||||
.SUFFIXES:
|
.SUFFIXES:
|
||||||
|
|
||||||
PREFIX=/usr/local
|
PREFIX=/usr/local
|
||||||
BINDIR=$(PREFIX)/bin
|
SBINDIR=$(PREFIX)/sbin
|
||||||
MANDIR=$(PREFIX)/share/man
|
MANDIR=$(PREFIX)/share/man
|
||||||
GO=go
|
GO=go
|
||||||
|
|
||||||
@ -13,8 +13,8 @@ mycorrhiza:
|
|||||||
$(GO) build $(GOFLAGS) -o mycorrhiza .
|
$(GO) build $(GOFLAGS) -o mycorrhiza .
|
||||||
|
|
||||||
install:
|
install:
|
||||||
mkdir -m755 -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1
|
mkdir -m755 -p $(DESTDIR)$(SBINDIR) $(DESTDIR)$(MANDIR)/man1
|
||||||
install -m755 mycorrhiza $(DESTDIR)$(BINDIR)/mycorrhiza
|
install -m755 mycorrhiza $(DESTDIR)$(SBINDIR)/mycorrhiza
|
||||||
install -m644 doc/mycorrhiza.1 $(DESTDIR)$(MANDIR)/man1/mycorrhiza.1
|
install -m644 doc/mycorrhiza.1 $(DESTDIR)$(MANDIR)/man1/mycorrhiza.1
|
||||||
|
|
||||||
.PHONY: all mycorrhiza install
|
.PHONY: all mycorrhiza install
|
||||||
|
Loading…
Reference in New Issue
Block a user