## Process this file with automake to produce Makefile.in ## Copyright (C) 2011 Samediggi ## This program is free software: you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation, either version 3 of the License, or ## (at your option) any later version. ## This program is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## You should have received a copy of the GNU General Public License ## along with this program. If not, see . GT_SPELLER_HFST=generator-fstspeller-gt-norm.hfst GT_FOMA_ACCEPTOR=acceptor-$(GTLANG).foma ####### Automake targets: ######## if WANT_SPELLERS if CAN_HFST if CAN_FOMA_SPELLER hfstdatadir=$(datadir)/giella/$(GTLANG) hfstdata_DATA=$(GT_FOMA_ACCEPTOR) endif #CAN_FOMA_SPELLER endif # CAN_HFST endif # WANT_SPELLERS ####### HFST build rules: ######## # Build the automaton used for the speller generator-fomaspeller-gt-norm.hfst: \ $(top_builddir)/tools/spellcheckers/fstbased/$(GT_SPELLER_HFST) \ $(top_builddir)/src/filters/remove-dialect-tags.hfst \ $(top_builddir)/src/filters/remove-homonymy-tags.hfst \ $(top_builddir)/src/filters/remove-variant-tags.hfst \ $(top_builddir)/src/filters/remove-number-string-tags.hfst \ $(top_builddir)/src/filters/remove-usage-tags.hfst \ $(top_builddir)/src/filters/remove-word-boundary.hfst $(AM_V_GEN)$(PRINTF) "\ @\"$(top_builddir)/src/filters/remove-dialect-tags.hfst\" \ .o. @\"$(top_builddir)/src/filters/remove-homonymy-tags.hfst\" \ .o. @\"$(top_builddir)/src/filters/remove-variant-tags.hfst\" \ .o. @\"$(top_builddir)/src/filters/remove-number-string-tags.hfst\" \ .o. @\"$(top_builddir)/src/filters/remove-usage-tags.hfst\" \ .o. @\"$<\" \ .o. @\"$(top_builddir)/src/filters/remove-word-boundary.hfst\" \ ;" \ | $(HFST_REGEXP2FST) $(HFST_FLAGS) -S --xerox-composition=ON \ > $@ $(GT_FOMA_ACCEPTOR): generator-fomaspeller-gt-norm.hfst $(AM_V_GEN)$(HFST_FST2FST) $(HFST_FLAGS) -f foma -b -i $< \ | $(GZIP) > $@ ####### Other targets: ########### clean-local: -rm -f *.foma # vim: set ft=automake: