Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!uxc.cso.uiuc.edu!garcon!mrcnext.cso.uiuc.edu!carlson From: carlson@mrcnext.cso.uiuc.edu Newsgroups: comp.sys.next Subject: Makefile for niload Message-ID: <800013@mrcnext.cso.uiuc.edu> Date: 24 Jun 89 21:36:00 GMT Lines: 41 Nf-ID: #N:mrcnext.cso.uiuc.edu:800013:000:1186 Nf-From: mrcnext.cso.uiuc.edu!carlson Jun 24 16:36:00 1989 I find it much easier to edit the text files in /etc, than mess around with the NetInfo App, especially since I do much of my work remotely (like now). This requires the frequent use of niload. To make this easier, I made the file /etc/Makefile (below). "make niload" will load any changed files (except passwd) after editing. I hope someone else finds this useful. ------------ Cut Here ------------ NIDB=/etc/netinfo/local.nidb/touch NILOAD=niload $? . < $? help: @echo "After changing system tables (e.g. hosts), make niload" niload: $(NIDB) touch $(NIDB) # each dependency MUST have a separate line. # note double colons # People stuff # nu(1) handles normal updates pw: niload passwd . < passwd $(NIDB):: group; $(NILOAD) # Unix device support $(NIDB):: fstab; $(NILOAD) # mounts $(NIDB):: printcap; $(NILOAD) # network services support $(NIDB):: hosts; $(NILOAD) # Only during boot; then use DNS # network(5): no RIP server or routed $(NIDB):: protocols; $(NILOAD) $(NIDB):: services; $(NILOAD) $(NIDB):: rpc; $(NILOAD) -------------------- Brad Carlson or University of Illinos--Micro Resource Center--NeXT guru