/*
** ADF special rules
**
** History:
**      11-oct-1989 (dds)
**		creation--first history entry..
**	29-may-92 (bonobo)
**		Added boba's changes from 21-mar-1990 in ingres63p.
**		Fixed file modes and simplified rules.  This new 
**		"MINGS" file replaces the old "mings." file.
**	23-mar-93 (dianeh)
**		Added source files as dependencies (before, targets only
**		got rebuilt if aducompile changed); changed file targets
**		to use .FILE rule (note that, because of the dependency
**		on aducompile, there's no way to write a rule for the
**		aducompile'd targets, because there's no automatic
**		variable that says "just do the source file", so you
**		end up with ming trying to aducompile aducompile, if
**		it's the dependency that's out-of-date).
**	25-jun-93 (peterk)
**		set II_CONFIG to $ING_BUILD/files before calling aducompile
**		so that collation files are compiled into the right place
**		when ING_BUILD is different from II_SYSTEM
**	16-mar-2001 (stephenb)
**		Add default unicode collation file, udefault.uce
**	5-apr-2001 (stephenb)
**		Add Unicode character database file, udata.ucd
*/

files:  \
	$(INGCOL)/multi.dsc \
	$(INGCOL)/multi \
	$(INGCOL)/spanish.dsc \
	$(INGCOL)/spanish \
	$(INGCOL)/udefault.uce \
	$(INGCOL)/udefault \
	$(INGCOL)/udata.ucd

/*
** Description files copied to build area.
*/

$(INGCOL)/multi.dsc :: multi.dsc .FILE
$(INGCOL)/spanish.dsc :: spanish.dsc .FILE
$(INGCOL)/udefault.uce :: udefault.uce .FILE
$(INGCOL)/udata.ucd :: udata.ucd .FILE

/*
** Collation files created using aducompile.
*/

$(INGCOL)/multi : multi.dsc $(INGUTIL)/aducompile
	II_CONFIG=$(ING_BUILD)/files; export II_CONFIG
	aducompile multi.dsc multi
	$(CHMOD) $(FILEMODE) $(<)

$(INGCOL)/spanish : spanish.dsc $(INGUTIL)/aducompile
	II_CONFIG=$(ING_BUILD)/files; export II_CONFIG
	aducompile spanish.dsc spanish
	$(CHMOD) $(FILEMODE) $(<)

$(INGCOL)/udefault : udefault.uce $(INGUTIL)/aducompile
	II_CONFIG=$(ING_BUILD)/files; export II_CONFIG
	aducompile udefault.uce udefault -u
	$(CHMOD) $(FILEMODE) $(<)
