#*****************************************************************
#**                                                             **
#**             (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.3 10/26/92 09:46:06 LLNL "

#
#	Make ELROS doc distribution
#

include ../Make.Defaults

#
# Local macros
#
DISTFILES= $(INSTALLFILES) Primer.ps ISO.ps Install.ps Design.ps

INSTALLFILES = Makefile README

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

#
# 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 installed files should be copied
#
MY_INSTALL_DIR=	$(RO_INSTALL_DIR)/doc

install: $(INSTALLFILES) $(MY_INSTALL_DIR)
	$(CD) $(MY_INSTALL_DIR); $(RM) $(INSTALLFILES)
	$(FOR) i in $(INSTALLFILES); $(DO) ( \
		$(CP) -p $$i $(MY_INSTALL_DIR); \
		$(CHMOD) 444 $(MY_INSTALL_DIR)/$$i; \
	); $(DONE)

