# $Copyright:	$
# Copyright (c) 1984, 1985, 1986, 1987, 1988, 1989, 1990 
# Sequent Computer Systems, Inc.   All rights reserved.
#  
# This software is furnished under a license and may be used
# only in accordance with the terms of that license and with the
# inclusion of the above copyright notice.   This software may not
# be provided or otherwise made available to, or used by, any
# other person.  No title to or ownership of the software is
# hereby transferred.

ARGS=
SCRIPTS	= mk mkcmd mkhead mklib mkman mkstand mksyshead mkupd mkuts mkpublic mkexport mkview mklocale
ptxMD = $(TOOLS)/ptxmd

all:	mk

$(SCRIPTS): FRC
	./:$@ $(ARGS)

FRC:

base_tape:
	$(ptxMD) desc_base

man_tape:
	$(ptxMD) desc_man

public_tape:
	$(ptxMD) desc_public

encryption_tape:
	$(ptxMD) desc_encryption

view_src_tape:
	mkdir $(TOOLS)/../i386
	(cd $(TOOLS); find . -print | cpio -pvdmu ../$(MACHINE))
	$(ptxMD) desc_view_src

base_src_tape:
	(cd ../../$(MACHINE)/tools; $(TOOLS)/ptxunif -UCRYPT)
	$(TOOLS)/ptxunif -UCRYPT
	$(ptxMD) desc_base_src

kernel_src_tape:
	sed -e "s/ mfg//" :mkuts > xyzzy; mv xyzzy :mkuts
	(cd uts; $(TOOLS)/ptxunif -UMFG)
	$(ptxMD) desc_kernel_src

man_src_tape:
	$(ptxMD) desc_man_src

encryption_src_tape:
	$(TOOLS)/ptxunif -n -UCRYPT | sed 's/[ 	][ 	]*/\
/g' | grep -v tools > ENCRYPT.FILES
	$(ptxMD) desc_encryption_src
