aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1997-01-13 23:44:20 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1997-01-13 23:44:20 +0000
commitaac45e814cf997f0df77795a3c06385075ef005a (patch)
tree844f9bca5adceff8ef3b9e9bb79131865afb798c
parentd7394bb5746f0977c9d780a79ec3dcc1e9ca58f0 (diff)
downloadsrc-aac45e814cf997f0df77795a3c06385075ef005a.tar.gz
src-aac45e814cf997f0df77795a3c06385075ef005a.zip
Make sure dir file exists before we call install-info, which requires it.
Sorry, I know it's a gross fix to call share/info's install target as a side-effect, but that's less gross than propagating the work-around changes to files which have nothing to do with the info system.
Notes
Notes: svn path=/head/; revision=21669
-rw-r--r--share/mk/bsd.info.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/share/mk/bsd.info.mk b/share/mk/bsd.info.mk
index d664ecfd690c..69b95ba285f9 100644
--- a/share/mk/bsd.info.mk
+++ b/share/mk/bsd.info.mk
@@ -1,4 +1,4 @@
-# $Id$
+# $Id: bsd.info.mk,v 1.27 1997/01/12 16:20:13 wosch Exp $
#
# The include file <bsd.info.mk> handles installing GNU (tech)info files.
# Texinfo is a documentation system that uses a single source
@@ -109,9 +109,13 @@ ${x:S/$/.gz/}: ${x}
${GZIPCMD} -c ${.ALLSRC} > ${.TARGET}
.endfor
+# What to do if there's no dir file there. This is really gross!!!
+${DESTDIR}${INFODIR}/${INFODIRFILE}:
+ @(cd /usr/src/share/info; make install)
+
.for x in ${INFO}
INSTALLINFODIRS+= ${x:S/$/-install/}
-${x:S/$/-install/}:
+${x:S/$/-install/}: ${DESTDIR}${INFODIR}/${INFODIRFILE}
${INSTALLINFO} --defsection=${INFOSECTION} \
--defentry=${INFOENTRY_${x}} \
${x}.info ${DESTDIR}${INFODIR}/${INFODIRFILE}