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

# gmake Makefile for ~usp/Converted/src/cmd
#
#	make everybody
#
include ${DEPTROOT}/usp/etc/gmake.init

SafeFiles	:=	Makefile

.PHONY:	all targets remotes safe

targets:
	(cd ccpbin;	${MAKE} targets);
	(cd ccpstk;	${MAKE} targets);
	(cd psvspec;	${MAKE} targets);
#	(cd xmcvd;	${MAKE} targets); # renamed - SGI debugger is cvd
	(cd psnmo;	${MAKE} targets);

all:	safe RemoteCopies
	(cd ccpbin;	${MAKE} all);
	(cd ccpstk;	${MAKE} all);
	(cd psvspec;	${MAKE} all);
#	(cd xmcvd;	${MAKE} all);
	(cd psnmo;	${MAKE} all);

remotes:	RemoteCopies
	(cd ccpbin;	${MAKE} remotes);
	(cd ccpstk;	${MAKE} remotes);
	(cd psvspec;	${MAKE} remotes);
#	(cd xmcvd;	${MAKE} remotes);
	(cd psnmo;	${MAKE} remotes);

install:	RemoteCopies
	(cd ccpbin;	${MAKE} install);
	(cd ccpstk;	${MAKE} install);
	(cd psvspec;	${MAKE} install);
#	(cd xmcvd;	${MAKE} install);
	(cd psnmo;	${MAKE} install);

clean:  
	(cd ccpbin;	${MAKE} clean);
	(cd ccpstk;	${MAKE} clean);
	(cd psvspec;	${MAKE} clean);
#	(cd xmcvd;	${MAKE} clean);
	(cd psnmo;	${MAKE} clean);
	-rm RemoteCopies RemoteMakes ${wildcard ShdCpy*}

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

safe:	.safe.${jdate}.Z
	(cd ccpbin;     ${MAKE} safe);
	(cd ccpstk;     ${MAKE}	safe);
	(cd psvspec;    ${MAKE} safe);
#	(cd xmcvd;	${MAKE} safe);
	(cd psnmo;	${MAKE} safe);

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

