From 7026126974737a94e6b803fec5d05bb49dec4d4e Mon Sep 17 00:00:00 2001 From: thorpej Date: Fri, 9 Aug 1996 21:04:32 +0000 Subject: [PATCH] Alter the ypservers rule a bit to always make sure that this map exists. --- usr.sbin/ypserv/ypinit/Makefile.yp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/usr.sbin/ypserv/ypinit/Makefile.yp b/usr.sbin/ypserv/ypinit/Makefile.yp index ac73f1ea73c1..e0fdf3f6407e 100644 --- a/usr.sbin/ypserv/ypinit/Makefile.yp +++ b/usr.sbin/ypserv/ypinit/Makefile.yp @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.yp,v 1.2 1996/08/09 20:58:36 thorpej Exp $ +# $NetBSD: Makefile.yp,v 1.3 1996/08/09 21:04:32 thorpej Exp $ # # This is the YP Makefile, used to create and push YP maps. # @@ -198,9 +198,9 @@ netid.time: $(DIR)/passwd $(DIR)/group $(DIR)/hosts $(DIR)/netid : ; \ fi -ypservers.time: $(YPDBDIR)/$(DOMAIN)/ypservers - -@$(MAKEDBM) ypservers ypservers; \ - $(TOUCH) $(@); \ +ypservers: + -@$(TOUCH) ypservers; \ + $(MAKEDBM) ypservers ypservers; \ $(ECHO) "updated ypservers"; \ if [ ! $(NOPUSH) ]; then \ $(YPPUSH) -d $(DOMAIN) ypservers; \ @@ -218,7 +218,6 @@ rpc: rpc.time services: services.time protocols: protocols.time netid: netid.time -ypservers: ypservers.time $(DIR)/passwd: $(DIR)/group: $(DIR)/hosts: @@ -228,4 +227,3 @@ $(DIR)/rpc: $(DIR)/services: $(DIR)/protocols: $(DIR)/netid: -$(YPDBDIR)/$(DOMAIN)/ypservers: