shithub: rgbds

Download patch

ref: 3e92f333195e9be181bf7c556bbc12e4446b8c96
parent: fd4b5c89256b0937f385ebdf5908ba0ae17d00fb
author: Anthony J. Bentley <[email protected]>
date: Sat Jan 11 13:28:04 EST 2014

Provide a friendlier error when manpage directories don’t exist.

--- a/Makefile
+++ b/Makefile
@@ -57,7 +57,12 @@
 	${Q}install -s -m 555 rgbfix ${BINPREFIX}/rgbfix
 	${Q}install -s -m 555 rgblink ${BINPREFIX}/rgblink
 	${Q}install -s -m 555 rgblib ${BINPREFIX}/rgblib
-	${Q}install -m 444 src/rgbds.7 ${MANPREFIX}/man7/rgbds.7
+	${Q}install -m 444 src/rgbds.7 ${MANPREFIX}/man7/rgbds.7 || \
+		(echo Installing manpages to ${MANPREFIX} failed. >&2 && \
+		 echo Check where your manpages are installed and set the \
+		      proper directory >&2 && \
+		 echo with, e.g., make install MANPREFIX=/usr/share/man \
+		 >&2 ; false)
 	${Q}install -m 444 src/asm/rgbasm.1 \
 		${MANPREFIX}/man1/rgbasm.1
 	${Q}install -m 444 src/fix/rgbfix.1 \