# Make the IMMATCHX package.


$ifeq (hostid, unix)  !(clear;date)  $endif
$call update
$ifeq (hostid, unix)  !(date)  $endif
$exit

update:
	$call update@lib
	$call update@src

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

wupdate:
	$call wupdate@src

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

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

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

# 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.
# ----------------------------------------

arch:
showfloat:                              # show current float option
        $verbose off
        !$(hlib)/mkfloat.csh
	;
generic:				# generic installation (no bin)
	$verbose off
	$set DIRS = "lib src"
	!$(hlib)/mkfloat.csh generic -d $(DIRS)
	;
sparc:					# install sparc binaries
	$verbose off
	$set DIRS = "lib src"
	!$(hlib)/mkfloat.csh sparc -d $(DIRS)
	;
ssun:					# install solaris binaries
	$verbose off
	$set DIRS = "lib src"
	!$(hlib)/mkfloat.csh ssun -d $(DIRS)
	;
i386:					# install i386 binaries
	$verbose off
	$set DIRS = "lib src"
	!$(hlib)/mkfloat.csh i386 -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)
	;
ddec:                                   # install DECstation/Ultrix binaries
        $verbose off                    # using DEC Fortran compiler
        $set DIRS = "lib src"
        !$(hlib)/mkfloat.csh ddec -d $(DIRS)
        ;
dmip:                                   # install DECstation/Ultrix binaries
        $verbose off                    # using MIPS RISC Fortran compiler
        $set DIRS = "lib src"
        !$(hlib)/mkfloat.csh dmip -d $(DIRS)
        ;
mips:                                   # install mips binaries
        $verbose off
        $set DIRS = "lib src"
        !$(hlib)/mkfloat.csh mips -d $(DIRS)
        ;
irix:                                   # install SGI IRIX binaries
        $verbose off
        $set DIRS = "lib src"
        !$(hlib)/mkfloat.csh irix -d $(DIRS)
        ;
aix:                                    # install IBM AIX binaries
        $verbose off
        $set DIRS = "lib src"
        !$(hlib)/mkfloat.csh aix -d $(DIRS)
        ;
hpux:                                   # install HP/UX binaries
        $verbose off
        $set DIRS = "lib src"
        !$(hlib)/mkfloat.csh hpux -d $(DIRS)
        ;
aux:                                    # install A/UX binaries
        $verbose off
        $set DIRS = "lib src"
        !$(hlib)/mkfloat.csh aux -d $(DIRS)
        ;
vax:                                    # install VAX binaries
        $verbose off
        $set DIRS = "lib src"
        !$(hlib)/mkfloat.csh vax -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)
	;
linux:					# install LINUX binaries
	$verbose off
	$set DIRS = "lib src"
	!$(hlib)/mkfloat.csh linux -d $(DIRS)
	;
linuz:					# install LINUZ binaries
	$verbose off
	$set DIRS = "lib src"
	!$(hlib)/mkfloat.csh linuz -d $(DIRS)
	;
alpha:					# install DEC Alpha/OSF binaries
	$verbose off
	$set DIRS = "lib src"
	!$(hlib)/mkfloat.csh alpha -d $(DIRS)
	;
