#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk

DICT_LANG := hy

install/aspell-$(DICT_LANG)::
	touch $(DEB_DESTDIR)/var/lib/aspell/hy.compat

	gzip -9 -c hy-common.cwl > "$(DEB_DESTDIR)/usr/share/aspell/hy-common.cwl.gz"
	echo "hy-common" >> "$(DEB_DESTDIR)/usr/share/aspell/$(DICT_LANG).contents"
	touch $(DEB_DESTDIR)/var/lib/aspell/hy-common.rws
	ln -sf /var/lib/aspell/hy-common.rws $(DEB_DESTDIR)/usr/lib/aspell/hy-common.rws

	installdeb-aspell
