#
# unix/tools/Makefile.in  --
#
# Makefile for building tools used during build and install process.  Nothing
# here is actually installed on the system.
#------------------------------------------------------------------------------
# Copyright 1992-1999 Karl Lehenbauer and Mark Diekhans.
#
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose and without fee is hereby granted, provided
# that the above copyright notice appear in all copies.  Karl Lehenbauer and
# Mark Diekhans make no representations about the suitability of this
# software for any purpose.  It is provided "as is" without express or
# implied warranty.
#------------------------------------------------------------------------------
# $Id: Makefile.in,v 1.1.1.1 1999/06/28 20:35:38 damon Exp $
#------------------------------------------------------------------------------
#

#------------------------------------------------------------------------------
# Common and user-editable defines.
#
srcdir = @srcdir@
@MAKEINCLUDE@ @MAKEQUOTE@@bldbasedir@/unix/Common.mk@MAKEQUOTE@
@MAKEINCLUDE@ @MAKEQUOTE@@bldbasedir@/unix/Config.mk@MAKEQUOTE@

#------------------------------------------------------------------------------

all: instcopy bldmanhelp cpmanpages cphelpdir

instcopy: instcopy.tcl buildutil.tcl
	rm -f instcopy
	cat ${srcdir}/buildutil.tcl ${srcdir}/instcopy.tcl >instcopy

bldmanhelp: bldmanhelp.tcl
	rm -f bldmanhelp
	cp ${srcdir}/bldmanhelp.tcl bldmanhelp

cpmanpages: cpmanpages.tcl buildutil.tcl
	rm -f cpmanpages
	cat ${srcdir}/buildutil.tcl ${srcdir}/cpmanpages.tcl >cpmanpages

cphelpdir: cphelpdir.sh
	rm -f cphelpdir
	echo ":"                           >cphelpdir
	echo "TOOLS=${bldbasedir}/tools"  >>cphelpdir
	cat ${srcdir}/cphelpdir.sh        >>cphelpdir
	chmod a+x cphelpdir

#------------------------------------------------------------------------------

clean:
	-rm -f instcopy bldmanhelp cpmanpages cphelpdir

#------------------------------------------------------------------------------
# Restore to the distributed state.

distclean: clean
	rm -f Makefile

# Disable Sun's parallel make, it doesn't get the dependencies right.
.NO_PARALLEL:


