sinclude $(GTLANG)/aspell.mk # Here we make aSpell files aspell: $(rws_files) $(cwl_files) aspell-dist: $(cwl_files) @echo @echo "*** Creating aspell distribution tarball ***" @echo @rm -rf $(aspell_distdir).tar.bz2 $(aspell_distdir) @mkdir $(aspell_distdir) @cp -p $(extra_files) $(cwl_files) $(multi_files) $(doc_files) \ $(data_files) $(aspell_distdir)/ @tar cf $(GTLANG)/aspell/$(aspell_distdir).tar $(aspell_distdir)/ @bzip2 -9 $(GTLANG)/aspell/$(aspell_distdir).tar @rm -rf $(aspell_distdir)/ $(GTLANG)/aspell/$(lang).wl: $(GTLANG)/bin/nonrec-$(GTLANG).save @echo @echo "*** Building aspell wordlist ***" @echo @printf "load stack < $< \n\ lower-words > $@.tmp \n\ quit \n" > tmp/aspell-script $(CFST) < tmp/aspell-script @rm -f tmp/aspell-script @rm -f $@ @./script/munch.sh $@.tmp $@ @rm -f $@.tmp $(rws_files): $(cwl_files) .SUFFIXES: .cwl .rws .wl .cwl.rws: /usr/bin/iconv -f UTF-8 -t ISO-8859-10 $(GTLANG)/aspell/$(lang)_affix.dat $(PREZIP) -d < $< | $(ASPELL) $(ASPELL_FLAGS) \ --lang=$(lang) create master ./$@ /usr/bin/iconv -f ISO-8859-10 -t UTF-8 $(GTLANG)/aspell/$(lang)_affix.dat .wl.cwl: cat $< | grep -v '[ ]' | LC_COLLATE=C sort -u | $(PREZIP) -z > $@