# Make the ALINEAR package.
#
# If you have not installed this package as an official IRAF external
# package (in hlib$extern.pkg), you must first execute the following
# unix command:
#
#    % setenv alinear 'directory'
#
# before entering IRAF to do a `mkpkg -p examples', and also before
# executing mkpkg at the host level.  The specified directory should
# be an absolute unix pathname, e.g., '/u2/seaman/examples/'.  The
# trailing slash (/) is required.  The unix environment definition
# can be added to your .login or .cshrc file for future convenience.


$call	update
$exit

update:
	$call update@src
	;


# 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)
	    $ifndef (spool)
		$set spool = spool
	    $endif
	    $verbose off
	    ! 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
# --------------------------------------

arch:					# show current architecture
showfloat:				# (obsolete usage)
	$verbose off
	!$(hlib)/mkfloat.csh
	;
generic:				# make architecture indep. (no bins)
	$verbose off
	$set DIRS = "lib src"
	!$(hlib)/mkfloat.csh generic -d $(DIRS)
	;
f68881:					# install f68881 binaries
	$verbose off
	$set DIRS = "lib src"
	!$(hlib)/mkfloat.csh f68881 -d $(DIRS)
	;
ffpa:					# install ffpa binaries
	$verbose off
	$set DIRS = "lib src"
	!$(hlib)/mkfloat.csh ffpa -d $(DIRS)
	;
fswitch:				# install fswitch binaries
	$verbose off
	$set DIRS = "lib src"
	!$(hlib)/mkfloat.csh fswitch -d $(DIRS)
	;
fsoft:					# install fsoft binaries
	$verbose off
	$set DIRS = "lib src"
	!$(hlib)/mkfloat.csh fsoft -d $(DIRS)
	;
i386:					# install i386 binaries
386i:
	$verbose off
	$set DIRS = "lib src"
	!$(hlib)/mkfloat.csh i386 -d $(DIRS)
	;
sparc:					# install sparc binaries
	$verbose off
	$set DIRS = "lib src"
	!$(hlib)/mkfloat.csh sparc -d $(DIRS)
	;
ssun:					# install ssun binaries
	$verbose off
	$set DIRS = "lib src"
	!$(hlib)/mkfloat.csh ssun -d $(DIRS)
	;
alpha:					# install alpha binaries
	$verbose off
	$set DIRS = "lib src"
	!$(hlib)/mkfloat.csh alpha -d $(DIRS)
	;
linux:					# install linux binaries
	$verbose off
	$set DIRS = "lib src"
	!$(hlib)/mkfloat.csh linux -d $(DIRS)
	;
