## 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 . ####### Source file defs: ######## #! @param GT_PHONOLOGY_MAIN required, the source of phonology #! @param GT_PHONOLOGY_SUPPLEMENTS optional, other sources to distribute and #! compile for other things #! Both @params are specified in $(GTLANG)/src/phonology/Makefile.am. # The source files are the sum of GT_PHONOLOGY_MAIN and GT_PHONOLOGY_SUPPLEMENTS GT_PHONOLOGY_SRCS=$(GT_PHONOLOGY_MAIN) $(GT_PHONOLOGY_SUPPLEMENTS) # All sources need to be included in the tarball EXTRA_DIST=$(GT_PHONOLOGY_SRCS) ####### Automake targets: ######## # The rule transducer(s) will be built, not installed GT_PHONOLOGY= if CAN_HFST GT_PHONOLOGY+=$(addsuffix .compose.hfst, $(basename $(GT_PHONOLOGY_SRCS))) GT_PHONOLOGY+=$(addsuffix .lookup.hfst, $(basename $(GT_PHONOLOGY_SRCS))) endif # CAN_HFST if CAN_XFST GT_PHONOLOGY+=$(addsuffix .compose.xfst, $(basename $(GT_PHONOLOGY_SRCS))) GT_PHONOLOGY+=$(addsuffix .lookup.xfst, $(basename $(GT_PHONOLOGY_SRCS))) endif # CAN_XFST if CAN_FOMA GT_PHONOLOGY+=$(addsuffix .compose.foma, $(basename $(GT_PHONOLOGY_SRCS))) GT_PHONOLOGY+=$(addsuffix .lookup.foma, $(basename $(GT_PHONOLOGY_SRCS))) endif # CAN_FOMA if WANT_L2 if CAN_HFST GT_PHONOLOGY+=$(GTLANG)-phon-L2.compose.hfst GT_PHONOLOGY+=$(GTLANG)-phon-L2.lookup.hfst endif # CAN_HFST if CAN_XFST GT_PHONOLOGY+=$(GTLANG)-phon-L2.compose.xfst GT_PHONOLOGY+=$(GTLANG)-phon-L2.lookup.xfst endif # CAN_XFST if CAN_XFST GT_PHONOLOGY+=$(GTLANG)-phon-L2.compose.foma GT_PHONOLOGY+=$(GTLANG)-phon-L2.lookup.foma endif # CAN_XFST endif # WANT_L2 noinst_DATA=$(GT_PHONOLOGY) ####### Other targets: ########### clean-local: -rm -f *.hfst *.xfst *.foma ########################################## # General build rules included from here:# include $(top_srcdir)/am-shared/twolc-include.am include $(top_srcdir)/am-shared/xfscript-include.am include $(top_srcdir)/am-shared/lookup-include.am include $(top_srcdir)/am-shared/silent_build-include.am # vim: set ft=automake: