#*****************************************************************
#**                                                             **
#**             (C) Copyright 1992 the Regents of the           **
#**        University of California.  All Rights Reserved.      **
#**                                                             **
#**        This work was produced under the sponsorship of      **
#**         the U.S. Department of Energy.  The Government      **
#**                retains certain rights therein.              **
#**                                                             **
#**                         Written by                          **
#**         Distributed Programming Environments Project        **
#**           Computer Software and Networking Division,        **
#**                   Livermore Computer Center,                **
#**            Lawrence Livermore National Laboratory           **
#**                                                             **
#*****************************************************************

#	sccsid:		"@(#)Makefile	1.4 10/26/92 09:35:22 LLNL "

#
#	Make ELROS utilities
#

include ../Make.Defaults

#
# Files
#
DISTFILES=	README Makefile

#
# Targets
#
none:
	@$(ECHOTEXT) 'You must specify "package" or "install" as target'

new:
	$(CD) asn; $(MAKE) new
	$(CD) logging; $(MAKE) new

#
# For the "package" target, the following macro must be defined as a 
# command line argument.
#
#    RO_DIST_DIR - directory where distribution files are to be copied
#
package: $(DISTFILES)
	$(CP) -p $(DISTFILES) $(RO_DIST_DIR)

#
# For the "install" target, the following macro must be appropriately
# defined.
#
#   RO_INSTALL_DIR - directory where ELROS installed files should be copied
#
MY_INSTALL_DIR=	$(RO_INSTALL_DIR)/util

install: $(DISTFILES) $(INSTALLFILES) $(MY_INSTALL_DIR)
	$(RM) $(MY_INSTALL_DIR)/*
	$(FOR) i in $(DISTFILES); $(DO) ( \
		$(CP) -p $$i $(MY_INSTALL_DIR); \
		$(CHMOD) 444 $(MY_INSTALL_DIR)/$$i; \
	); $(DONE) 
	$(CD) asn; $(MAKE) $(D)MY_INSTALL_DIR=$(MY_INSTALL_DIR)/asn install
	$(CD) logging; $(MAKE) $(D)MY_INSTALL_DIR=$(MY_INSTALL_DIR)/logging install

