########################################################################
#                 copyright 2001, Amoco Production Company             #
#                             All Rights Reserved                      #
#                     an affiliate of BP America Inc.                  #
########################################################################

# gmake Makefile for ~usp
# 89/06/26	Terri Fischer

#
#	make everybody
#
include ${DEPTROOT}/etc/gmake.init

SafeFiles	:=	Makefile 

.PHONY:	all targets safe

targets:
	(cd dspec8;	${MAKE} targets);
#	(cd hspec8;	${MAKE} targets);		- deleted - 7/23/93 - zjmw36
	(cd hspec9;	${MAKE} targets);
#	(cd hspecp;	${MAKE} targets);		- use hspecp91 - 5/15/95
	(cd hspec91;	${MAKE} targets);
	(cd hspecp91;	${MAKE} targets);
	(cd hspect;	${MAKE} targets);
#	(cd rhwvinta;	${MAKE} targets);
	(cd rhwvint;	${MAKE} targets);
#	(cd mrhwvinta;	${MAKE} targets);
	(cd rhfoc;	${MAKE} targets);
	(cd slvr;	${MAKE} targets);
#	(cd tpfoc;	${MAKE} targets);

all:	safe RemoteCopies
	(cd dspec8;	${MAKE} all);
#	(cd hspec8;	${MAKE} all);		- deleted - 7/23/93 - zjmw36
	(cd hspec9;	${MAKE} all);
#	(cd hspecp;	${MAKE} all);		- use hspecp91 - 5/15/95
	(cd hspec91;	${MAKE} all);
	(cd hspecp91;	${MAKE} all);
	(cd hspect;	${MAKE} all);
#	(cd rhwvinta;	${MAKE} all);
	(cd rhwvint;	${MAKE} all);
#	(cd mrhwvinta;	${MAKE} all);
	(cd rhfoc;	${MAKE} all);
	(cd slvr;	${MAKE} all);
#	(cd tpfoc;	${MAKE} all);

remotes:  RemoteCopies
	(cd dspec8;	${MAKE} remotes);
#	(cd hspec8;	${MAKE} remotes);		- deleted - 7/23/93 - zjmw36
	(cd hspec9;	${MAKE} remotes);
#	(cd hspecp;	${MAKE} remotes);		- use hspecp91 - 5/15/95
	(cd hspec91;	${MAKE} remotes);
	(cd hspecp91;	${MAKE} remotes);
	(cd hspect;	${MAKE} remotes);
#	(cd rhwvinta;	${MAKE} remotes);
	(cd rhwvint;	${MAKE} remotes);
#	(cd mrhwvinta;	${MAKE} remotes);
	(cd rhfoc;	${MAKE} remotes);
	(cd slvr;	${MAKE} remotes);
#	(cd tpfoc;	${MAKE} remotes);

install:  RemoteCopies
	(cd dspec8;	${MAKE} install);
#	(cd hspec8;	${MAKE} install);		- deleted - 7/23/93 - zjmw36
	(cd hspec9;	${MAKE} install);
#	(cd hspecp;	${MAKE} install);		- use hspecp91 - 5/15/95
	(cd hspec91;	${MAKE} install);
	(cd hspecp91;	${MAKE} install);
	(cd hspect;	${MAKE} install);
#	(cd rhwvinta;	${MAKE} install);
	(cd rhwvint;	${MAKE} install);
#	(cd mrhwvinta;	${MAKE} install);
	(cd rhfoc;	${MAKE} install);
	(cd slvr;	${MAKE} install);
#	(cd tpfoc;	${MAKE} install);

clean:  
	(cd dspec8;	${MAKE} clean);
#	(cd hspec8;	${MAKE} clean);		- deleted - 7/23/93 - zjmw36
	(cd hspec9;	${MAKE} clean);
#	(cd hspecp;	${MAKE} clean);		- use hspecp91 - 5/15/95
	(cd hspec91;	${MAKE} clean);
	(cd hspecp91;	${MAKE} clean);
	(cd hspect;	${MAKE} clean);
#	(cd rhwvinta;	${MAKE} clean);
	(cd rhwvint;	${MAKE} clean);
#	(cd mrhwvinta;	${MAKE} clean);
	(cd rhfoc;	${MAKE} clean);
	(cd slvr;	${MAKE} clean);
#	(cd tpfoc;	${MAKE} clean);
	-rm RemoteCopies RemoteMakes ${wildcard ShdCpy*}

RemoteCopies:	${SafeFiles}
	shadowcopy -v $?
	touch RemoteCopies

safe:	.safe.${jdate}.Z
	(cd dspec8;	${MAKE} safe);
#	(cd hspec8;	${MAKE} safe);		- deleted - 7/23/93 - zjmw36
	(cd hspec9;	${MAKE} safe);
#	(cd hspecp;	${MAKE} safe);		- use hspecp91 - 5/15/95
	(cd hspec91;	${MAKE} safe);
	(cd hspecp91;	${MAKE} safe);
	(cd hspect;	${MAKE} safe);
#	(cd rhwvinta;	${MAKE} safe);
	(cd rhwvint;	${MAKE} safe);
#	(cd mrhwvinta;	${MAKE} safe);
	(cd rhfoc;	${MAKE} safe);
	(cd slvr;	${MAKE} safe);
#	(cd tpfoc;	${MAKE} safe);

.safe.${jdate}.Z:	${SafeFiles}
	${MakeSafe}
