##
## Package: lingucomponent-tools
##
## Copyright (C) 2002 Pavel Jank (Pavel@Janik.cz)
##
## This file is licensed under GNU LGPL and SISSL license.
##


# The language code (language_country)
LANGUAGE=cs
COUNTRY=CZ
LANG=${LANGUAGE}_${COUNTRY}

# Source files (ispell dictionary)
SOURCE_AFF=czech.aff
SOURCE_DIC=czech.a-z
SOURCE_HYPH=czhyphen.tex

# Results of the conversion scripts
DEST_AFF=${LANG}.aff
DEST_DIC=${LANG}.dic
DEST_HYPH=hyph_${LANGUAGE}.dic

all:	aff dic hyph

aff:	${SOURCE_AFF}
	@./ispell_to_myspell_aff.awk <${SOURCE_AFF} >${DEST_AFF}

dic:	${SOURCE_DIC}
	@./ispell_to_myspell_dic.awk <${SOURCE_DIC}|sort >${DEST_DIC}

hyph:	${SOURCE_HYPH}
	@./TeX_to_OpenOffice.org_hyph.awk <${SOURCE_HYPH} >${DEST_HYPH}

clean:
	@rm -f ${DEST_AFF} ${DEST_DIC} ${DEST_HYPH}

distclean:	clean
	@rm -f ${SOURCE_AFF} ${SOURCE_DIC} ${SOURCE_HYPH}
