make: use more GNU directory variables

A set of conventions[0] that I think are quite nice outside of
autotools.

0. https://www.gnu.org/prep/standards/html_node/Directory-Variables.html
This commit is contained in:
Earnestly 2020-05-21 21:59:02 +01:00
parent d4e10c871b
commit 021a64558d
1 changed files with 6 additions and 6 deletions

View File

@ -1,9 +1,9 @@
PREFIX = /usr/local PREFIX = /usr/local
bindir = /bin bindir = $(PREFIX)/bin
mandir = /share/man datarootdir = $(PREFIX)/share
mandir = $(datarootdir)/man
install: sx sx.1 install: sx sx.1
mkdir -p $(DESTDIR)$(PREFIX)$(bindir) mkdir -p $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man1
mkdir -p $(DESTDIR)$(PREFIX)$(mandir)/man1 cp -f sx $(DESTDIR)$(bindir)
cp -f sx $(DESTDIR)$(PREFIX)$(bindir) cp -f sx.1 $(DESTDIR)$(mandir)/man1
cp -f sx.1 $(DESTDIR)$(PREFIX)$(mandir)/man1