#	Make FTP-able default page  - Distribution use only
#
HTEXT = Bugs.html		CommandLine.html	Commands.html \
	Customisation.html	Distribution.html	EnvVariables.html \
	Features.html      	GlobalV.html 		InstallNotSU.html \
	Installation.html	Installation_VMS.html	LoginScript.html \
	NewsServer.html         Path.html \
	Porting.html      	QuickGuide.html      Shortcuts.html \
	VMS_Shortcuts.html   default.html \
	cern.html

REF = /pub/www/default.html
TAR = /pub/www/WWWLineModeDefaults.tar

all :	$(TAR).Z $(REF)
	@ echo Default pages updated

$(TAR).Z : $(HTEXT)
	tar -cvf $(TAR) $(HTEXT)
	compress $(TAR)

$(REF) : default.html clean
	cp *.html /usr/local/lib/WWW
	cp default.html $(REF)

# Do this on info, asis01, www1, dxcern and on other master cern servers
cern : clean /usr/local/lib/WWW/default.html

/usr/local/lib/WWW/default.html : cern.html
	cp *.html /usr/local/lib/WWW

dxcern :
	cp cern.html /usr/local/lib/WWW/default.html

asis :
	cp cern.html /usr/local/lib/WWW/default.html

# Note name mapping is done by the httpd.conf file so no ln -s
#	ln -s /usr/local/lib/WWW/cern.html /usr/local/lib/WWW/default.html


clean :
	-rm ,* *~
