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


include ${DEPTROOT}/chd/etc/gmake.init

SafeFiles	:=	Makefile

.PHONY:	all targets remotes safe

targets:
	test -d ${LocalLib}  || mkdir -p ${LocalLib}
	(cd chd;	${MAKE} targets);

remotes: RemoteCopies
	(cd chd;	${MAKE} remotes);

all:	safe remotes
	(cd chd;	${MAKE} all);

clean:	
	(cd chd;	${MAKE} clean);
	-rm RemoteCopies RemoteMakes ${wildcard ShdCpy*}  

remotes:	RemoteCopies

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

safe:	.safe.${jdate}.Z
	(cd chd;        ${MAKE} safe);

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


