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


# gmake Makefile for ~usp/man

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

SafeFiles	:=	Makefile

.PHONY:	remotes all safe targets

targets:	;
	(cd man1; ${MAKE} targets)
	(cd man3; ${MAKE} targets)

remotes:	RemoteCopies
	(cd man1; ${MAKE} remotes)
	(cd man3; ${MAKE} remotes)

install:	RemoteCopies
	(cd man1; ${MAKE} install)
	(cd man3; ${MAKE} install)

all:	safe RemoteCopies
	(cd man1; ${MAKE} all)
	(cd man3; ${MAKE} all)

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

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

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

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

