#   Make the HEADERS package
#   Created: Williamson, 16-Jul-1993
#
#   Special keywords recognized by IRAF mkpkg files:
#
#	mkpkg relink		update object library and link
#	mkpkg linkonly		skip object library updates and just link
#	mkpkg install		move executable to lib$
#	mkpkg update		update object library, link, and move to lib$

$call	relink
$exit

update:
	$call	relink
	$call	install
	;

relink:
	$update	headers.a
	$call	headers
	;

install:
	$move	xx_headers.e stsdasbin$x_headers.e
	;

headers:
linkonly:
	$omake	x_headers.x

	$link	x_headers.o headers.a  \
		-ldisplay -lstxtools -ltbtables \
		-lgflib -lgilib -lxtools \
         	-o xx_headers.e
	;

headers.a:
	@lib
	@eheader
	@groupmod
	@hcheck
	@hdiff
	@iminfo
	@stfhistory
	@upreffile
	;
