diff options
author | jkh <jkh@FreeBSD.org> | 1997-01-13 09:54:38 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1997-01-13 09:54:38 +0000 |
commit | 6f001ae28e0c8418afde8783bbc6ac4f8a85293a (patch) | |
tree | 0cda5a5847bf9853777496cff04451a0775863a5 | |
parent | 9e40c0db2b501f59e4254ffdfa12a5c32560e43f (diff) | |
download | FreeBSD-src-6f001ae28e0c8418afde8783bbc6ac4f8a85293a.zip FreeBSD-src-6f001ae28e0c8418afde8783bbc6ac4f8a85293a.tar.gz |
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.
-rw-r--r-- | gnu/usr.bin/texinfo/install-info/Makefile | 13 |
1 files changed, 10 insertions, 3 deletions
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 <bsd.prog.mk> |