# V Server top-level buildfile

#include ../../buildprefix

CONFIG_DIRS = vax+unix4.2bsd

all: configurations Vhosttab

configurations:
	domake "$(CONFIG_DIRS)" "build"

install: install-configurations install-Vhosttab

install-configurations:
	domake "$(CONFIG_DIRS)" "build install"

clean: clean-configurations clean-Vhosttab

clean-configurations:
	domake "$(CONFIG_DIRS)" "build clean"

relink:

# We can delete the following stuff once we've done away with the Vhosttab file:

# Used by the hosttab.csh program to produce the Vhosttab used
# by simple lookup.
SERVERHOSTS = pescadero gregorio leland navajo diablo whitney shasta glacier \
	camelot coyote cascade safe drwho scotty isl \
	carmel amadeus fuji ardvax star score sushi sierra sonoma labrea

# buildfile dependency for SERVERHOSTS variable
Vhosttab: hosttab.csh buildfile
	hosttab.csh $(SERVERHOSTS) > Vhosttab

install-Vhosttab: Vhosttab
#ifdef X
	netinstall -x Vhosttab $(VSYS)/run
#else X
	netinstall Vhosttab $(VSYS)/run
#endif X

clean-Vhosttab:
	-rm -f Vhosttab
