changeset 9:5e20db99d4c8

Makefile: Add MANPREFIX, some install phase changes
author ng0 <ng0@crash.cx>
date Thu, 22 Feb 2018 16:10:46 +0000
parents e73fd34c9282
children ecb2bfe389fb
files Makefile
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Thu Feb 22 16:06:34 2018 +0000
+++ b/Makefile	Thu Feb 22 16:10:46 2018 +0000
@@ -5,6 +5,7 @@
 CPPFLAGS+=-I. -DVERSION=\"$(MAJOR).$(MINOR)\"
 LDLIBS+=-lz
 PREFIX?=/usr/local
+MANPREFIX?=${PREFIX}/share/man
 OBJS=\
 	cbtcommon/debug.o\
 	cbtcommon/hash.o\
@@ -24,10 +25,9 @@
 cvsps: $(OBJS)
 
 install:
-	[ -d $(prefix)/bin ] || mkdir -p $(prefix)/bin
-	[ -d $(prefix)/share/man/man1 ] || mkdir -p $(prefix)/share/man/man1
-	install cvsps $(prefix)/bin
-	install -m 644 cvsps.1 $(prefix)/share/man/man1
+	install -d $(PREFIX)/bin $(MANPREFIX)/man1
+	install cvsps $(PREFIX)/bin
+	install -m 644 cvsps.1 $(MANPREFIX)/man1
 
 clean:
 	rm -f cvsps *.o cbtcommon/*.o core