# Make the IMCNV package.

$call	update@src
$exit

update:
	$call update@src
	;

debug:
	$call debug@src
	;

rdist:					# For updating NOAO servers
	$call generic
	!sleep 10
	!rdist
	$call sparc
	;

archive:				# For updating archive directory
	$call generic
	!sleep 10
	!rdist archive
	$call sparc
	;



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

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


# 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
	    ! grep -v ':$$' spool | grep -v '^xc' | grep -v '^ar'\
	    | grep -v '^check file'
	$else
	    $echo "mkpkg summary only available on a UNIX system"
	$endif
	;



# 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 = "lib src"
	!$(hlib)/mkfloat.csh generic -d $(DIRS)
	;
sparc:					# install sparc binaries
	$ifnfile (bin.sparc)
	     !mkdir bin.sparc
	$endif
	$verbose off
	$set DIRS = "lib src"
	!$(hlib)/mkfloat.csh sparc -d $(DIRS)
	;
ssun:					# install Sun Solaris binaries
	$ifnfile (bin.ssun)
	     !mkdir bin.ssun
	$endif
	$verbose off
	$set DIRS = "lib src"
	!$(hlib)/mkfloat.csh ssun -d $(DIRS)
	;
irix:					# install SGI IRIX binaries
	$ifnfile (bin.irix)
	     !mkdir bin.irix
	$endif
	$verbose off
	$set DIRS = "lib src"
	!$(hlib)/mkfloat.csh irix -d $(DIRS)
	;
hp700:					# install HP/UX binaries
	$ifnfile (bin.hp700)
	     !mkdir bin.hp700
	$endif
	$verbose off
	$set DIRS = "lib src"
	!$(hlib)/mkfloat.csh hp700 -d $(DIRS)
	;
rs6000:					# install AIX binaries
	$ifnfile (bin.rs6000)
	     !mkdir bin.rs6000
	$endif
	$verbose off
	$set DIRS = "lib src"
	!$(hlib)/mkfloat.csh rs6000 -d $(DIRS)
	;
alpha:					# install DEC Alpha binaries
	$ifnfile (bin.alpha)
	     !mkdir bin.alpha
	$endif
	$verbose off
	$set DIRS = "lib src"
	!$(hlib)/mkfloat.csh alpha -d $(DIRS)
	;
linux:					# install PC Linux binaries
	$ifnfile (bin.linux)
	     !mkdir bin.linux
	$endif
	$verbose off
	$set DIRS = "lib src"
	!$(hlib)/mkfloat.csh linux -d $(DIRS)
	;
redhat:					# install PC redhat binaries
	$ifnfile (bin.redhat)
	     !mkdir bin.redhat
	$endif
	$verbose off
	$set DIRS = "lib src"
	!$(hlib)/mkfloat.csh redhat -d $(DIRS)
	;
freebsd:				# install PC FreeBSD binaries
	$ifnfile (bin.freebsd)
	     !mkdir bin.freebsd
	$endif
	$verbose off
	$set DIRS = "lib src"
	!$(hlib)/mkfloat.csh freebsd -d $(DIRS)
	;
