# $Source: /usr/local/kcs/sys.DAVIS_800/q4/RCS/makefile,v $
# $Revision: 1.5.98.3 $	$Author: runyan $
# $State: Exp $   	$Locker:  $
# $Date: 96/03/12 20:39:18 $

# Get everything ready to deliver.

all:	q4 Q4Docs.tar.Z Q4Lib.tar.Z

# Get the latest Q4 executable and documentation archive.  The ninstall
# will drop them in the current directory.

q4 Q4Docs.tar.Z:
	ninstall -h uxsrc.cup.hp.com q4.Davis

# Run from a kernel objects directory (S800, for example), produce a
# compressed tar file of the Q4 program library.  The scripts in this
# library are designed to make kernel crashdump debugging faster and
# easier.  When uncompressed and unpacked this archive drops the scripts
# and ReadMe file into the directory "./q4lib".

Q4Lib.tar.Z:
	rm -rf q4lib
	mkdir q4lib
	cp ../q4/ReadMe ../q4/*.pl q4lib
	chmod 777 q4lib
	chmod 664 q4lib/ReadMe q4lib/*.pl
	chgrp bin q4lib/ReadMe q4lib/*.pl q4lib
	chown bin q4lib/ReadMe q4lib/*.pl q4lib
	tar cf - q4lib | compress > Q4Lib.tar.Z
	rm -rf q4lib
