aboutsummaryrefslogtreecommitdiff
path: root/share/mk/doc.docbook.mk
diff options
context:
space:
mode:
authorNik Clayton <nik@FreeBSD.org>2000-10-29 18:01:54 +0000
committerNik Clayton <nik@FreeBSD.org>2000-10-29 18:01:54 +0000
commit7c4206c1aae962a46f80d2a459c0ec4e06fe65d1 (patch)
tree26cdbf700acbb6d008973e1a609ddee566655a01 /share/mk/doc.docbook.mk
parent5c8f5eeeb0a2ead50f7acf63b7d7fda163c62b93 (diff)
downloaddoc-7c4206c1aae962a46f80d2a459c0ec4e06fe65d1.tar.gz
doc-7c4206c1aae962a46f80d2a459c0ec4e06fe65d1.zip
Support installing images where the document and images are split up over
multiple directories, the way (for example) that the Handbook is.
Notes
Notes: svn path=/head/; revision=8235
Diffstat (limited to 'share/mk/doc.docbook.mk')
-rw-r--r--share/mk/doc.docbook.mk22
1 files changed, 19 insertions, 3 deletions
diff --git a/share/mk/doc.docbook.mk b/share/mk/doc.docbook.mk
index c3b94cb3b9..c9c990a227 100644
--- a/share/mk/doc.docbook.mk
+++ b/share/mk/doc.docbook.mk
@@ -1,5 +1,5 @@
#
-# $FreeBSD: doc/share/mk/doc.docbook.mk,v 1.22 2000/10/10 06:16:56 kuriyama Exp $
+# $FreeBSD: doc/share/mk/doc.docbook.mk,v 1.23 2000/10/29 02:39:10 nik Exp $
#
# This include file <doc.docbook.mk> handles building and installing of
# DocBook documentation in the FreeBSD Documentation Project.
@@ -356,7 +356,15 @@ install-${_cf}: index.html
@[ -d ${DESTDIR}/${LOCAL_IMAGES_LIB_DIR}/${_curimage:H} ] || mkdir -p ${DESTDIR}/${LOCAL_IMAGES_LIB_DIR}/${_curimage:H}
${INSTALL_DOCS} ${LOCAL_IMAGES_LIB_DIR}/${_curimage} ${DESTDIR}/${LOCAL_IMAGES_LIB_DIR}/${_curimage:H}
.endfor
-.for _curimage in ${IMAGES_PNG}
+# Install the images. First, loop over all the image names that contain a
+# directory seperator, make the subdirectories, and install. Then loop over
+# the ones that don't contain a directory separator, and install them in the
+# top level.
+.for _curimage in ${IMAGES_PNG:M*/*}
+ mkdir -p ${DESTDIR}/${_curimage:H}
+ ${INSTALL_DOCS} ${_curimage} ${DESTDIR}/${_curimage:H}
+.endfor
+.for _curimage in ${IMAGES_PNG:N*/*}
${INSTALL_DOCS} ${_curimage} ${DESTDIR}
.endfor
.for _compressext in ${KNOWN_COMPRESS}
@@ -372,7 +380,15 @@ install-${_cf}: ${DOC}.${_cf}
@[ -d ${DESTDIR}/${LOCAL_IMAGES_LIB_DIR}/${_curimage:H} ] || mkdir -p ${DESTDIR}/${LOCAL_IMAGES_LIB_DIR}/${_curimage:H}
${INSTALL_DOCS} ${LOCAL_IMAGES_LIB_DIR}/${_curimage} ${DESTDIR}/${LOCAL_IMAGES_LIB_DIR}/${_curimage:H}
.endfor
-.for _curimage in ${IMAGES_PNG}
+# Install the images. First, loop over all the image names that contain a
+# directory seperator, make the subdirectories, and install. Then loop over
+# the ones that don't contain a directory separator, and install them in the
+# top level.
+.for _curimage in ${IMAGES_PNG:M*/*}
+ mkdir -p ${DESTDIR}/${_curimage:H}
+ ${INSTALL_DOCS} ${_curimage} ${DESTDIR}/${_curimage:H}
+.endfor
+.for _curimage in ${IMAGES_PNG:N*/*}
${INSTALL_DOCS} ${_curimage} ${DESTDIR}
.endfor
.else