aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2008-05-30 06:11:58 +0800
committermarcus <marcus@FreeBSD.org>2008-05-30 06:11:58 +0800
commit6d3931092dbf6b6638ba75e0aa26760e044e97f5 (patch)
treefb81c7ebf28efcb340c172fd9db27ecf66d7936a /devel
parent71cf8e4afcda5d6c4c089e3803af36b4848a4ff0 (diff)
downloadfreebsd-ports-gnome-6d3931092dbf6b6638ba75e0aa26760e044e97f5.tar.gz
freebsd-ports-gnome-6d3931092dbf6b6638ba75e0aa26760e044e97f5.tar.zst
freebsd-ports-gnome-6d3931092dbf6b6638ba75e0aa26760e044e97f5.zip
Don't install docs if there are no docs to install.
Diffstat (limited to 'devel')
-rw-r--r--devel/glib20-reference/bsd.gnome-reference.mk10
1 files changed, 6 insertions, 4 deletions
diff --git a/devel/glib20-reference/bsd.gnome-reference.mk b/devel/glib20-reference/bsd.gnome-reference.mk
index 946ad01796eb..3a0b065035b6 100644
--- a/devel/glib20-reference/bsd.gnome-reference.mk
+++ b/devel/glib20-reference/bsd.gnome-reference.mk
@@ -50,10 +50,12 @@ make-descr:
do-install:
. if !defined(NOPORTDOCS)
. for d in ${BOOKS}
- ${MKDIR} ${DOCSDIR}/${d}
- cd ${REFERENCE_SRC}/${d}/html && \
- ${FIND} * -type d ! -empty -exec ${MKDIR} "${DOCSDIR}/${d}/{}" \; && \
- ${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${DOCSDIR}/${d}/{}" \;
+ if [ -d ${REFERENCE_SRC}/${d}/html ]; then \
+ ${MKDIR} ${DOCSDIR}/${d}; \
+ cd ${REFERENCE_SRC}/${d}/html && \
+ ${FIND} * -type d ! -empty -exec ${MKDIR} "${DOCSDIR}/${d}/{}" \; && \
+ ${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${DOCSDIR}/${d}/{}" \; ; \
+ fi
. endfor
. endif
.endif