From 021a64558d98b52ae69d98ca2fd2ddaf0e9d5318 Mon Sep 17 00:00:00 2001 From: Earnestly Date: Thu, 21 May 2020 21:59:02 +0100 Subject: [PATCH] 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 --- Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index a20ae25..ec74a29 100644 --- a/Makefile +++ b/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