From a50aabb5d6b0a9b375737041c80670ca8d364c2d Mon Sep 17 00:00:00 2001 From: Bill Paul Date: Fri, 3 Feb 1995 22:01:17 +0000 Subject: [PATCH] Fixed potential Makefile glitch that could arise if /var/yp doesn't exist yet. --- gnu/usr.sbin/ypserv/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gnu/usr.sbin/ypserv/Makefile b/gnu/usr.sbin/ypserv/Makefile index 48b901fcd68c..02358bceeac7 100644 --- a/gnu/usr.sbin/ypserv/Makefile +++ b/gnu/usr.sbin/ypserv/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.2 1995/02/01 01:59:57 wpaul Exp $ +# $Id: Makefile,v 1.3 1995/02/03 03:41:38 wpaul Exp $ # From: @(#)Makefile 8.3 (Berkeley) 4/2/94 PROG= ypserv @@ -12,6 +12,7 @@ MAN8= afterinstall: /var/yp/Makefile /usr/libexec/mknetid /var/yp/Makefile: ${.CURDIR}/Makefile.yp + @if [ ! -d /var/yp ]; then mkdir /var/yp; fi install -c -o bin -g bin -m 444 ${.CURDIR}/Makefile.yp /var/yp/Makefile /usr/libexec/mknetid: ${.CURDIR}/mknetid