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


# gmake Makefile for ~usp/src
# 89/4/24	Bill Done

#
#	make everybody
#
#	Make the libraries first - the commands may need them.
#
include ${DEPTROOT}/usp/etc/gmake.init

SafeFiles	:=	Makefile

.PHONY:	all targets remotes safe

targets:
	(cd rad2slnt;	${MAKE} targets);
	(cd slstkf;	${MAKE} targets);
	(cd slstkr;	${MAKE} targets);
	(cd taupf;	${MAKE} targets);
#	(cd taup3f;	${MAKE} targets); - deleted - 7/23/93 - zjmw36
#	(cd tauphf;	${MAKE} targets); - deleted - 7/23/93 - zjmw36
	(cd taupr;	${MAKE} targets);
#	(cd taup3r;	${MAKE} targets); - deleted - 7/23/93 - zjmw36
#	(cd tauphr;	${MAKE} targets); - deleted - 7/23/93 - zjmw36
	(cd taupmig;	${MAKE} targets);
	(cd taupnmo;	${MAKE} targets);
	(cd taumute;	${MAKE} targets);
	(cd taupred;	${MAKE} targets);
	(cd taupspec;	${MAKE} targets);
	(cd taupsamp;	${MAKE} targets);
	(cd taupvzs;   ${MAKE} targets);

all:	safe remotes
	(cd rad2slnt;	${MAKE} all);
	(cd slstkf;	${MAKE} all);
	(cd slstkr;	${MAKE} all);
	(cd taupf;	${MAKE} all);
#	(cd taup3f;	${MAKE} all); - deleted - 7/23/93 - zjmw36
#	(cd tauphf;	${MAKE} all); - deleted - 7/23/93 - zjmw36
	(cd taupr;	${MAKE} all);
#	(cd taup3r;	${MAKE} all); - deleted - 7/23/93 - zjmw36
#	(cd tauphr;	${MAKE} all); - deleted - 7/23/93 - zjmw36
	(cd taupmig;	${MAKE} all);
	(cd taupnmo;	${MAKE} all);
	(cd taumute;	${MAKE} all);
	(cd taupred;	${MAKE} all);
	(cd taupspec;	${MAKE} all);
	(cd taupsamp;   ${MAKE} all);
	(cd taupvzs;	${MAKE} all);

remotes:	RemoteCopies
	(cd rad2slnt;	${MAKE} remotes);
	(cd slstkf;	${MAKE} remotes);
	(cd slstkr;	${MAKE} remotes);
	(cd taupf;	${MAKE} remotes);
#	(cd taup3f;	${MAKE} remotes); - deleted - 7/23/93 - zjmw36
#	(cd tauphf;	${MAKE} remotes); - deleted - 7/23/93 - zjmw36
	(cd taupr;	${MAKE} remotes);
#	(cd taup3r;	${MAKE} remotes); - deleted - 7/23/93 - zjmw36
#	(cd tauphr;	${MAKE} remotes); - deleted - 7/23/93 - zjmw36
	(cd taupmig;	${MAKE} remotes);
	(cd taupnmo;	${MAKE} remotes);
	(cd taumute;	${MAKE} remotes);
	(cd taupred;	${MAKE} remotes);
	(cd taupspec;	${MAKE} remotes);
	(cd taupsamp;	${MAKE} remotes);
	(cd taupvzs;   ${MAKE} remotes);

install:	RemoteCopies
	(cd rad2slnt;	${MAKE} install);
	(cd slstkf;	${MAKE} install);
	(cd slstkr;	${MAKE} install);
	(cd taupf;	${MAKE} install);
	(cd taupr;	${MAKE} install);
	(cd taupmig;	${MAKE} install);
	(cd taupnmo;	${MAKE} install);
	(cd taumute;	${MAKE} install);
	(cd taupred;	${MAKE} install);
	(cd taupspec;	${MAKE} install);
	(cd taupsamp;	${MAKE} install);
	(cd taupvzs;   ${MAKE} install);

clean:  
	(cd rad2slnt;	${MAKE} clean);
	(cd slstkf;	${MAKE} clean);
	(cd slstkr;	${MAKE} clean);
	(cd taupf;	${MAKE} clean);
	(cd taupr;	${MAKE} clean);
	(cd taupmig;	${MAKE} clean);
	(cd taupnmo;	${MAKE} clean);
	(cd taumute;	${MAKE} clean);
	(cd taupred;	${MAKE} clean);
	(cd taupspec;	${MAKE} clean);
	(cd taupsamp;	${MAKE} clean);
	(cd taupvzs;   ${MAKE} clean);
	-rm RemoteCopies RemoteMakes ${wildcard ShdCpy*}

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

safe:	.safe.${jdate}.Z
	(cd rad2slnt;	${MAKE} safe);
	(cd slstkf;	${MAKE} safe);
	(cd slstkr;	${MAKE} safe);
	(cd taupf;	${MAKE} safe);
	(cd taupr;	${MAKE} safe);
	(cd taupmig;	${MAKE} safe);
	(cd taupnmo;	${MAKE} safe);
	(cd taumute;	${MAKE} safe);
	(cd taupred;	${MAKE} safe);
	(cd taupspec;	${MAKE} safe);
	(cd taupsamp;	${MAKE} safe);
	(cd taupvzs;   ${MAKE} safe);

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

