--- doc/Makefile.in.orig	2014-10-12 15:50:27.000000000 +0000
+++ doc/Makefile.in	2016-12-10 18:43:26.681283216 +0000
@@ -273,7 +273,7 @@
 	manual.pdf
 
 DIR_CONTENTS = ${TEXSOURCES} ${TEXOUTPUT} README
-udedocdir = ${prefix}/doc/${PACKAGE}-${VERSION}
+udedocdir = ${docdir}/${PACKAGE}-${VERSION}
 udedoc_DATA = ${DIR_CONTENTS}
 EXTRA_DIST = ${DIR_CONTENTS}
 all: all-am
