#!/usr/bin/make -f

#export DH_VERBOSE=1

%:
	dh $@

override_dh_auto_build:
	/usr/share/mythes/th_gen_idx.pl -o th_pl_PL_v2_debian.idx < th_pl_PL_v2.dat

override_dh_clean:
	rm -f th_pl_PL_v2_debian.idx
	dh_clean

override_dh_install:
	install -D -m644 th_pl_PL_v2_debian.idx \
	    debian/mythes-pl/usr/share/mythes/th_pl_PL_v2.idx
	install -m644 th_pl_PL_v2.dat \
	    debian/mythes-pl/usr/share/mythes
	install -D -m644 debian/dictlistinfo \
	    debian/mythes-pl/usr/share/myspell/infos/ooo/mythes-pl
