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:
parent
d4e10c871b
commit
021a64558d
12
Makefile
12
Makefile
|
@ -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
|
|
||||||
|
|
Loading…
Reference in New Issue