# MKPKG file for the EUV Package
#	last revised 10/29/97

$call update
$call install
$exit

update:
	$call update@src

	# $ifeq (HOSTID, vms) $purge [...] $endif
	;

install:
	$call install@src

	# $ifeq (HOSTID, vms) $purge [...] $endif
	;


# STRIP -- Strip the EUV directories of all sources and other files not
# required to run the system, or for user programming.

strip:
	!rmfiles -f lib/strip.euv
	;

# SUMMARY -- [UNIX] mkpkg summary: output a summary of the spooled mkpkg
# output, omitting most of the mundane chatter.  Used to scan large spool
# files for errors.

summary:
	$ifeq (HOSTID, unix)
	    ! grep -v ':$$' spool | grep -v '^xc' | grep -v '^ar'\
	    | grep -v '^check file'
	$else
	    $echo "mkpkg summary only available on a UNIX system"
	$endif
	;

# SUN/IRAF multiple architecture support.
# ----------------------------------------

showfloat:				# show current float option
	$verbose off
	!$(hlib)/mkfloat.csh
	;
generic:				# make architecture indep. (no bins)
	$verbose off
	$set DIRS = "src lib"
	!$(hlib)/mkfloat.csh generic -d $(DIRS)
	;
linux:                                  # install PC Linux 32-bit binaries
	$verbose off
	$set DIRS = "src lib"
	!$(hlib)/mkfloat.csh linux -d $(DIRS)
	;
macosx:                                 # install OSX 32-bit binaries
	$verbose off
	$set DIRS = "src lib"
	!$(hlib)/mkfloat.csh macosx -d $(DIRS)
	;
