mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-10 20:13:53 +01:00
Add RSTTOMAN to configure path to rst2man (Closes: #140)
This commit is contained in:
parent
cc0e59825c
commit
114cc32fd8
24
Makefile
24
Makefile
@ -129,20 +129,18 @@ install: all install-headers po
|
||||
$(ECHO) installing executable file
|
||||
$(QUIET)mkdir -p ${DESTDIR}${PREFIX}/bin
|
||||
$(QUIET)install -m 755 ${PROJECT} ${DESTDIR}${PREFIX}/bin
|
||||
ifneq "$(wildcard ${RSTTOMAN})" ""
|
||||
$(ECHO) installing manual pages
|
||||
$(QUIET)mkdir -p ${DESTDIR}${MANPREFIX}/man1
|
||||
$(QUIET)set -e && if which rst2man > /dev/null ; then \
|
||||
mkdir -p ${DESTDIR}${MANPREFIX}/man1 ; \
|
||||
sed "s/VERSION/${VERSION}/g" < ${PROJECT}.1.rst > ${PROJECT}-v.1.rst ; \
|
||||
rst2man ${PROJECT}-v.1.rst > ${DESTDIR}${MANPREFIX}/man1/${PROJECT}.1 ; \
|
||||
rm -f ${PROJECT}-v.1.rst ; \
|
||||
mkdir -p ${DESTDIR}${MANPREFIX}/man5 ; \
|
||||
sed "s/VERSION/${VERSION}/g" < ${PROJECT}rc.5.rst > ${PROJECT}rc-v.5.rst ; \
|
||||
rst2man ${PROJECT}rc-v.5.rst > ${DESTDIR}${MANPREFIX}/man5/${PROJECT}rc.5 ; \
|
||||
rm -f ${PROJECT}rc-v.5.rst ; \
|
||||
chmod 644 ${DESTDIR}${MANPREFIX}/man1/${PROJECT}.1 ; \
|
||||
chmod 644 ${DESTDIR}${MANPREFIX}/man5/${PROJECT}rc.5 ; \
|
||||
fi
|
||||
$(QUIET)mkdir -p ${DESTDIR}${MANPREFIX}/man1 ${DESTDIR}${MANPREFIX}/man5
|
||||
$(QUIET)sed "s/VERSION/${VERSION}/g" < ${PROJECT}.1.rst > ${PROJECT}-v.1.rst
|
||||
$(QUIET)${RSTTOMAN} ${PROJECT}-v.1.rst > ${DESTDIR}${MANPREFIX}/man1/${PROJECT}.1
|
||||
$(QUIET)rm ${PROJECT}-v.1.rst
|
||||
$(QUIET)sed "s/VERSION/${VERSION}/g" < ${PROJECT}rc.5.rst > ${PROJECT}rc-v.5.rst
|
||||
$(QUIET)${RSTTOMAN} ${PROJECT}rc-v.5.rst > ${DESTDIR}${MANPREFIX}/man5/${PROJECT}rc.5
|
||||
$(QUIET)rm ${PROJECT}rc-v.5.rst
|
||||
$(QUIET)chmod 644 ${DESTDIR}${MANPREFIX}/man1/${PROJECT}.1
|
||||
$(QUIET)chmod 644 ${DESTDIR}${MANPREFIX}/man5/${PROJECT}rc.5
|
||||
endif
|
||||
$(QUIET)mkdir -p ${DESTDIR}${DESKTOPPREFIX}
|
||||
$(ECHO) installing desktop file
|
||||
$(QUIET)install -m 644 ${PROJECT}.desktop ${DESTDIR}${DESKTOPPREFIX}
|
||||
|
@ -23,10 +23,12 @@ INCLUDEDIR ?= ${PREFIX}/include
|
||||
|
||||
# plugin directory
|
||||
PLUGINDIR ?= ${LIBDIR}/zathura
|
||||
|
||||
# locale directory
|
||||
LOCALEDIR ?= ${PREFIX}/share/locale
|
||||
|
||||
# rst2man
|
||||
RSTTOMAN ?= /usr/bin/rst2man
|
||||
|
||||
# libs
|
||||
GTK_INC ?= $(shell pkg-config --cflags gtk+-${ZATHURA_GTK_VERSION}.0)
|
||||
GTK_LIB ?= $(shell pkg-config --libs gtk+-${ZATHURA_GTK_VERSION}.0 gthread-2.0)
|
||||
|
Loading…
Reference in New Issue
Block a user