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


# gmake Makefile for ~usp/include
# 89/5/15	Bill Done

#
#	gmake for include - nothing special here
#
include	${DEPTROOT}/usp/etc/gmake.init

SafeFiles	:=	${wildcard *.h} Makefile

.PHONY:	remotes all safe targets

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

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

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

all:	safe RemoteCopies
	(cd f77; ${MAKE} all)
	(cd f8x; ${MAKE} all)
	(cd c; ${MAKE} all)

clean:	
	(cd f77; ${MAKE} clean)
	(cd f8x; ${MAKE} clean)
	(cd c; ${MAKE} clean)
	-rm RemoteCopies

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

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

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

