all: swelex.hfst 

swelex.hfst: swelex8.sfst swelex8.lex forkortningar8.data
	hfst-calculate --input swelex8.sfst | hfst-invert > $@

swelex8.lex: dsso-1.46.txt.gz swelex-clean swelex-compile-dict.pl
	zcat $< | ./swelex-clean | ./swelex-compile-dict.pl > $@

clean: 
	rm swelex.hfst swelex8.lex
