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

# gmake Makefile for ~trcgp

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

SafeFiles	:=	Makefile 

.PHONY:	all targets safe

targets:
	(cd cmd/ccincl;	${MAKE} targets);
	(cd lib;	${MAKE} targets);
	(cd cmd;	${MAKE} targets);

all:	safe clean targets remotes 
	(cd cmd/ccincl;	${MAKE} all);
	(cd lib;	${MAKE} all);
	(cd cmd;	${MAKE} all);

remotes:  RemoteCopies
	(cd cmd/ccincl;	${MAKE} remotes);
	(cd lib;	${MAKE} remotes);
	(cd cmd;	${MAKE} remotes);

install:  RemoteCopies 
	(cd cmd/ccincl;	${MAKE} install);
	(cd cmd;	${MAKE} install);

clean:
	(cd lib;	${MAKE} clean);
	(cd cmd;	${MAKE} clean); # cmd/ccincl must be last
	-rm RemoteCopies

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

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

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