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


# gmake Makefile for ~usp/src
# 89/4/24	Bill Done

#
#	make everybody
#
#	Make the libraries first - the commands may need them.
#
include ${DEPTROOT}/usp/etc/gmake.init

SafeFiles	:=	Makefile

.PHONY:	all targets remotes safe

targets:
#	(cd fermat;	${MAKE} targets)
	(cd pwparax;	${MAKE} targets)

all:	safe RemoteCopies
#	(cd fermat;	${MAKE} all)
	(cd pwparax;	${MAKE} all)

remotes:	RemoteCopies
#	(cd fermat;	${MAKE} remotes)
	(cd pwparax;	${MAKE} remotes)

install:	RemoteCopies
#	(cd fermat;	${MAKE} install)
	(cd pwparax;	${MAKE} install)

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

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

safe:	.safe.${jdate}.Z
#	(cd fermat;	${MAKE} safe)
	(cd pwparax;	${MAKE} safe)

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

