# MKPKG file for the ARED package

$call update
$exit

update:
	$call	update@quad
	#$call	update@oquad		# old version!
	$call	update@src
	$call	revision
	;


# REVISION -- Revision control.

revision:
	$ifeq (HOSTID, unix)
	    !sed -e "s/DATE/`date`/" ared.rev > ared.par
	$endif
	;

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

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

# 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:
	! grep -v ':$$' spool | grep -v '^xc' | grep -v '^ar'\
	| grep -v '^check file'
	;

# IRAF multiple architecture support.
# ----------------------------------------

arch:					# show current float option
showfloat:
	$verbose off
	!$(hlib)/mkfloat.csh
	;
generic:				# generic installation (no bin)
	$ifnfile (bin.generic)
	    !mkdir bin.generic
	$endif
	$verbose off
	$set DIRS = "nquad quad src"
	!$(hlib)/mkfloat.csh generic -d $(DIRS)
	;
sparc:					# install sparc binaries
	$ifnfile (bin.sparc)
	    !mkdir bin.sparc
	$endif
	$verbose off
	$set DIRS = "nquad quad src"
	!$(hlib)/mkfloat.csh sparc -d $(DIRS)
	;
ssun:					# install Solaris binaries
	$ifnfile (bin.ssun)
	    !mkdir bin.ssun
	$endif
	$verbose off
	$set DIRS = "nquad quad src"
	!$(hlib)/mkfloat.csh ssun -d $(DIRS)
	;
alpha:					# install Dec Alpha binaries
	$ifnfile (bin.alpha)
	    !mkdir bin.alpha
	$endif
	$verbose off
	$set DIRS = "nquad quad src"
	!$(hlib)/mkfloat.csh alpha -d $(DIRS)
	;
irix:					# install SGI IRIX binaries
	$ifnfile (bin.irix)
	    !mkdir bin.irix
	$endif
	$verbose off
	$set DIRS = "nquad quad src"
	!$(hlib)/mkfloat.csh irix -d $(DIRS)
	;
aix:					# install IBM AIX binaries
	$ifnfile (bin.aix)
	    !mkdir bin.aix
	$endif
	$verbose off
	$set DIRS = "nquad quad src"
	!$(hlib)/mkfloat.csh aix -d $(DIRS)
	;
hp700:					# install HP/UX binaries
	$ifnfile (bin.hp700)
	    !mkdir bin.hp700
	$endif
	$verbose off
	$set DIRS = "nquad quad src"
	!$(hlib)/mkfloat.csh hp700 -d $(DIRS)
	;
redhat:                                 # install REDHAT binaries
	$ifnfile (bin.redhat)
	    !mkdir bin.redhat
	$endif
        $verbose off
        $set DIRS = "nquad quad src"
        !$(hlib)/mkfloat.csh redhat -d $(DIRS)
        ;
suse:                                 # install SuSE binaries
	$ifnfile (bin.suse)
	    !mkdir bin.suse
	$endif
        $verbose off
        $set DIRS = "nquad quad src"
        !$(hlib)/mkfloat.csh suse -d $(DIRS)
        ;
linux:                                  # install LINUX binaries
	$ifnfile (bin.linux)
	    !mkdir bin.linux
	$endif
        $verbose off
        $set DIRS = "nquad quad src"
        !$(hlib)/mkfloat.csh linux -d $(DIRS)
        ;
