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

#
#	issomething utilities
#
include ${DEPTROOT}/etc/gmake.init

CSrcs	    :=   issystem.c

SafeFiles	:=	${CSrcs} Makefile

PRGM    :=	$(LocalBin)/issystem

${PRGM}:	${CObjs}
	${LinkC} -o $@ ${CObjs}

.PHONY:	all safe remotes targets

targets:	${PRGM}

all:	safe clean targets remotes

remotes:	RemoteCopies	RemoteMakes

install:	RemoteCopies RemoteMakes
		shadowexec -v ${MAKE} && touch RemoteMakes

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

RemoteMakes:	${SafeFiles}
	shadowexec -v ${MAKE}
	touch RemoteMakes

safe:	.safe.${jdate}.Z

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

clean:
	-rm ${TArchDir}/included.files ${AllObjs} ${PRGM} RemoteCopies RemoteMakes ${wildcard ShdCpy*}  
