/*
** Install character set support files
**
** History:
**	1-Aug-91 (seiwald)
**	    Written.
**      2-Aug-91 (seiwald)
**          Use CVahxl since CVuahxl died in infancy.
**          Renamed directory charset to charsets, to agree with our
**          agreed upon name.
**	9-Nov-92 (seiwald)
**	    Added iiname.all.
**	23-mar-1995 (peeje01)
**	    Cross integration double byte from 6500db_su4_us42
**          add japanese.xlt chineset.xlt
**	09-apr-1999 (somsa01)
**	    Added chineses.xlt .
**	11-Mar-1999 (peeje01)
**          Add utf8.xlt
**	20-Aug-02 (gordy)
**	    Remove utf8.xlt.  This was not a real mapping of UTF8 characters
**	    to NSCS, but just a identity matrix to make GCC happy.  Data
**	    corruption would have occured if a connection was made between
**	    a UTF8 installation and any other type.  GCC has been enhanced
**	    to allow character sets without NSCS mappings with restriction
**	    that only same charset installations can connect.
*/

files: \
	$(INGFILES)/charsets/gcccset.nam \
	$(INGFILES)/charsets/gcccset.xlt \
	$(INGFILES)/name/iiname.all

$(INGFILES)/charsets/gcccset.nam : gcccset.nam
	@
	echo cp $(>) $(<)
	[ ! -d $(<:D) ] && mkdir $(<:D)
	cp $(>) $(<)
	chmod $(FILEMODE) $(<)

$(INGFILES)/charsets/gcccset.xlt : gcccset.xlt japanese.xlt chineset.xlt chineses.xlt
	@
	[ ! -d $(<:D) ] && mkdir $(<:D)
	. readvers
	if [ $conf_DBL ]
	then
		echo "yapp -H## -D$config -DDOUBLEBYTE gcccset.xlt > $(<)"
		yapp -H## -D$config -DDOUBLEBYTE gcccset.xlt > $(<)
	else
		echo "yapp -H## -D$config gcccset.xlt > $(<)"
		yapp -H## -D$config gcccset.xlt > $(<)
	fi
	chmod $(FILEMODE) $(<)

$(INGFILES)/name/iiname.all : iiname.all .DEMO

