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
|
||||
bindir = /bin
|
||||
mandir = /share/man
|
||||
bindir = $(PREFIX)/bin
|
||||
datarootdir = $(PREFIX)/share
|
||||
mandir = $(datarootdir)/man
|
||||
|
||||
install: sx sx.1
|
||||
mkdir -p $(DESTDIR)$(PREFIX)$(bindir)
|
||||
mkdir -p $(DESTDIR)$(PREFIX)$(mandir)/man1
|
||||
cp -f sx $(DESTDIR)$(PREFIX)$(bindir)
|
||||
cp -f sx.1 $(DESTDIR)$(PREFIX)$(mandir)/man1
|
||||
mkdir -p $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man1
|
||||
cp -f sx $(DESTDIR)$(bindir)
|
||||
cp -f sx.1 $(DESTDIR)$(mandir)/man1
|
||||
|
|
Loading…
Reference in New Issue