doc: Create infodir before writing to it and prefix with DESTDIR

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
This commit is contained in:
Martin Winter 2018-02-23 08:43:09 -08:00 committed by Quentin Young
parent b59555c6bf
commit 3b7c7293ee
No known key found for this signature in database
GPG Key ID: DAF48E0F57E0834F

View File

@ -86,8 +86,9 @@ developer.html:
# info target, handled by automake installation
install-data-local: frr.info
gzip < user/_build/texinfo/frr.info > ${infodir}/frr.info.gz
install-info user/_build/texinfo/frr.info ${infodir}/dir
install -d ${DESTDIR}${infodir}
gzip < user/_build/texinfo/frr.info > ${DESTDIR}${infodir}/frr.info.gz
install-info user/_build/texinfo/frr.info ${DESTDIR}${infodir}/dir
# include sources for shipped docs
EXTRA_DIST = manpages/defines.rst \