From 6f001ae28e0c8418afde8783bbc6ac4f8a85293a Mon Sep 17 00:00:00 2001 From: jkh Date: Mon, 13 Jan 1997 09:54:38 +0000 Subject: Install a dir file if one doesn't exist. This seems the most likely place to do it, I guess, and it's the utility which falls over without one. --- gnu/usr.bin/texinfo/install-info/Makefile | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'gnu/usr.bin') diff --git a/gnu/usr.bin/texinfo/install-info/Makefile b/gnu/usr.bin/texinfo/install-info/Makefile index 1f3e47b..404393f 100644 --- a/gnu/usr.bin/texinfo/install-info/Makefile +++ b/gnu/usr.bin/texinfo/install-info/Makefile @@ -2,10 +2,11 @@ # $Id$ # -INSTALLINFODIR= ${.CURDIR}/../../../../contrib/texinfo/util -TXIDIR= ${.CURDIR}/../../../../contrib/texinfo/libtxi +TEXIDIR= ${.CURDIR}/../../../../contrib/texinfo +INSTALLINFODIR= ${TEXIDIR}/util +TXIDIR= ${TEXIDIR}/libtxi LIBTXI= ${.CURDIR}/../libtxi/libtxi.a -BINDIR= /usr/bin +BINDIR= /usr/bin PROG= install-info NOMAN=yes @@ -23,4 +24,10 @@ DPADD+= ${LIBTXI} .PATH: $(INSTALLINFODIR) +afterinstall: + @if [ ! -f ${DESTDIR}/usr/share/info/dir ]; then \ + ${INSTALL} ${COPY} -o ${BINOWN} -m ${BINMODE} ${TEXIDIR}/dir \ + ${DESTDIR}/usr/share/info/dir; \ + fi + .include -- cgit v1.1