From f4f6d6da7ffd39ff91b26c077396abd86c525b82 Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Fri, 8 Jul 2011 15:51:04 +0200 Subject: [PATCH] Build zathurarc.5 in install target and update README --- Makefile | 7 ++++++- README | 3 +++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d34bfe5..571215d 100644 --- a/Makefile +++ b/Makefile @@ -65,7 +65,7 @@ dist: clean @mkdir -p ${PROJECT}-${VERSION} @cp -R LICENSE Makefile config.mk config.def.h README \ ${PROJECT}.1 ${SOURCE} ${PROJECT}-${VERSION} \ - ${PROJECT}.desktop + ${PROJECT}.desktop ${PROJECT}rst.5.rst @tar -cf ${PROJECT}-${VERSION}.tar ${PROJECT}-${VERSION} @gzip ${PROJECT}-${VERSION}.tar @rm -rf ${PROJECT}-${VERSION} @@ -78,6 +78,10 @@ install: all @echo installing manual page @mkdir -p ${DESTDIR}${MANPREFIX}/man1 @sed "s/VERSION/${VERSION}/g" < ${PROJECT}.1 > ${DESTDIR}${MANPREFIX}/man1/${PROJECT}.1 + @if which rst2man > /dev/null ; then \ + mkdir -p ${DESTDIR}${MANPREFIX}/man5 ; \ + rst2man ${PROJECT}rc.5.rst > ${DESTDIR}${MANPREFIX}/man5/${PROJECT}rc.5 ; \ + fi @chmod 644 ${DESTDIR}${MANPREFIX}/man1/${PROJECT}.1 @mkdir -p ${DESTDIR}${DESKTOPPREFIX} @echo installing desktop file @@ -88,5 +92,6 @@ uninstall: @rm -f ${DESTDIR}${PREFIX}/bin/${PROJECT} @echo removing manual page @rm -f ${DESTDIR}${MANPREFIX}/man1/${PROJECT}.1 + @rm -f ${DESTDIR}${MANPREFIX}/man5/${PROJECT}rc.5 @echo removing desktop file @rm -f ${DESTDIR}${DESKTOPPREFIX}/${PROJECT}.desktop diff --git a/README b/README index 67f0d53..48dfc94 100644 --- a/README +++ b/README @@ -12,6 +12,9 @@ glib2 (2.22.4) Please note that you need to have a working pkg-config installation and that the Makefile is only compatible with GNU make. +And also note that rst2man from python-docutils is needed to build +zathurarc.5. If it is not installed, zathurarc.5 won't be built. + Configuration ------------- You can modify some parts of zathura by editing the config.h file