Alter the ypservers rule a bit to always make sure that this map
exists.
This commit is contained in:
parent
e20d4be867
commit
7026126974
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue