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

include	${DEPTROOT}/etc/gmake.init

SafeFiles	:=	${wildcard *.h} Makefile

.PHONY:	all remotes safe targets

targets:
	(cd f77; ${MAKE} targets)
	(cd f8x; ${MAKE} targets)
#	(cd fsrc; ${MAKE} targets)

remotes: RemoteCopies
	(cd f77; ${MAKE} remotes)
	(cd f8x; ${MAKE} remotes)
	
install: RemoteCopies
	(cd f77; ${MAKE} install)
	(cd f8x; ${MAKE} install)

all:	safe clean RemoteCopies
	(cd f77; ${MAKE} all)
	(cd f8x; ${MAKE} all)
#	(cd fsrc; ${MAKE} all)

remotes:	RemoteCopies

RemoteCopies:	${SafeFiles}
	shadowcopy $?
	touch RemoteCopies

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

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

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