4 PREFIX1=$(LANG1)-$(LANG2)
5 PREFIX2=$(LANG2)-$(LANG1)
7 BASENAME=apertium-$(PREFIX1)
9 TARGETS_COMMON = $(PREFIX1).automorf.bin $(PREFIX1).autobil.bin $(PREFIX1).autogen.bin \
10 $(PREFIX1).autopgen.bin $(PREFIX2).automorf.bin $(PREFIX2).autobil.bin \
11 $(PREFIX2).autogen.bin $(PREFIX2).autopgen.bin \
12 $(PREFIX1).t1x.bin $(PREFIX1).t2x.bin $(PREFIX1).t3x.bin \
13 $(PREFIX2).t1x.bin $(PREFIX2).t2x.bin $(PREFIX2).t3x.bin modes
15 $(PREFIX1).automorf.bin: $(BASENAME).$(LANG1).dix
16 apertium-validate-dictionary $(BASENAME).$(LANG1).dix
17 lt-comp lr $(BASENAME).$(LANG1).dix $@
19 $(PREFIX1).autobil.bin: $(BASENAME).$(PREFIX1).dix
20 apertium-validate-dictionary $(BASENAME).$(PREFIX1).dix
21 lt-comp lr $(BASENAME).$(PREFIX1).dix $@
23 $(PREFIX1).autogen.bin: $(BASENAME).$(LANG2).dix
24 apertium-validate-dictionary $(BASENAME).$(LANG2).dix
25 lt-comp rl $(BASENAME).$(LANG2).dix $@
27 $(PREFIX1).autopgen.bin: $(BASENAME).post-$(LANG2).dix
28 apertium-validate-dictionary $(BASENAME).post-$(LANG2).dix
29 lt-comp lr $(BASENAME).post-$(LANG2).dix $@
31 $(PREFIX2).automorf.bin: $(BASENAME).$(LANG2).dix
32 apertium-validate-dictionary $(BASENAME).$(LANG2).dix
33 lt-comp lr $(BASENAME).$(LANG2).dix $@
35 $(PREFIX2).autobil.bin: $(BASENAME).$(PREFIX1).dix
36 apertium-validate-dictionary $(BASENAME).$(PREFIX1).dix
37 lt-comp rl $(BASENAME).$(PREFIX1).dix $@
39 $(PREFIX2).autogen.bin: $(BASENAME).$(LANG1).dix
40 apertium-validate-dictionary $(BASENAME).$(LANG1).dix
41 lt-comp rl $(BASENAME).$(LANG1).dix $@
43 $(PREFIX2).autopgen.bin: $(BASENAME).post-$(LANG1).dix
44 apertium-validate-dictionary $(BASENAME).post-$(LANG1).dix
45 lt-comp lr $(BASENAME).post-$(LANG1).dix $@
47 $(PREFIX1).t1x.bin: $(BASENAME).$(PREFIX1).t1x
48 apertium-validate-transfer $(BASENAME).$(PREFIX1).t1x
49 apertium-preprocess-transfer $(BASENAME).$(PREFIX1).t1x $@
51 $(PREFIX1).t2x.bin: $(BASENAME).$(PREFIX1).t2x
52 apertium-validate-interchunk $(BASENAME).$(PREFIX1).t2x
53 apertium-preprocess-transfer $(BASENAME).$(PREFIX1).t2x $@
55 $(PREFIX1).t3x.bin: $(BASENAME).$(PREFIX1).t3x
56 apertium-validate-postchunk $(BASENAME).$(PREFIX1).t3x
57 apertium-preprocess-transfer $(BASENAME).$(PREFIX1).t3x $@
59 $(PREFIX2).t1x.bin: $(BASENAME).$(PREFIX2).t1x
60 apertium-validate-transfer $(BASENAME).$(PREFIX2).t1x
61 apertium-preprocess-transfer $(BASENAME).$(PREFIX2).t1x $@
63 $(PREFIX2).t2x.bin: $(BASENAME).$(PREFIX2).t2x
64 apertium-validate-interchunk $(BASENAME).$(PREFIX2).t2x
65 apertium-preprocess-transfer $(BASENAME).$(PREFIX2).t2x $@
67 $(PREFIX2).t3x.bin: $(BASENAME).$(PREFIX2).t3x
68 apertium-validate-postchunk $(BASENAME).$(PREFIX2).t3x
69 apertium-preprocess-transfer $(BASENAME).$(PREFIX2).t3x $@
72 EXTRA_DIST=$(BASENAME).$(LANG1).dix $(BASENAME).$(PREFIX1).dix \
73 $(BASENAME).post-$(LANG1).dix $(BASENAME).post-$(LANG2).dix \
74 $(BASENAME).$(LANG2).dix $(BASENAME).$(LANG1).tsx \
75 $(BASENAME).$(LANG2).tsx \
76 $(PREFIX1).prob $(PREFIX2).prob \
77 buscaPar.xsl principal.xsl apertium-fr-es.fr.metadix \
78 $(PREFIX1)-supervised.make $(PREFIX1)-unsupervised.make \
79 $(PREFIX2)-supervised.make $(PREFIX2)-unsupervised.make \
80 $(LANG1)-tagger-data/README $(LANG2)-tagger-data/README \
81 $(BASENAME).$(PREFIX1).t1x $(BASENAME).$(PREFIX1).t2x \
82 $(BASENAME).$(PREFIX1).t3x $(BASENAME).$(PREFIX2).t1x \
83 $(BASENAME).$(PREFIX2).t2x $(BASENAME).$(PREFIX2).t3x \
86 apertium-fr-es.fr.dix: apertium-fr-es.fr.metadix
87 @xsltproc buscaPar.xsl apertium-fr-es.fr.metadix | uniq > $$gen.xsl
88 @xsltproc $$gen.xsl apertium-fr-es.fr.metadix >$@
91 apertium_fr_esdir=$(prefix)/share/apertium/apertium-$(PREFIX1)/
92 apertium_fr_modesdir=$(prefix)/share/apertium/modes/
94 $(PREFIX1).mode: modes.xml
95 apertium-gen-modes modes.xml
97 $(PREFIX2).mode: modes.xml
98 apertium-gen-modes modes.xml
101 apertium-gen-modes modes.xml
103 apertium_fr_es_DATA=$(PREFIX1).automorf.bin $(PREFIX2).automorf.bin \
104 $(PREFIX1).autobil.bin $(PREFIX2).autobil.bin \
105 $(PREFIX1).autogen.bin $(PREFIX2).autogen.bin \
106 $(PREFIX1).autopgen.bin \
107 $(PREFIX2).autopgen.bin \
108 $(PREFIX1).prob $(PREFIX2).prob \
109 $(PREFIX1).t1x.bin $(PREFIX1).t2x.bin $(PREFIX1).t3x.bin \
110 $(PREFIX2).t1x.bin $(PREFIX2).t2x.bin $(PREFIX2).t3x.bin \
111 $(PREFIX1).mode $(PREFIX2).mode
114 apertium-gen-modes modes.xml apertium-$(PREFIX1)
115 $(INSTALL_DATA) $(PREFIX1).mode $(apertium_fr_modesdir)
116 $(INSTALL_DATA) $(PREFIX2).mode $(apertium_fr_modesdir)
117 $(INSTALL_DATA) $(BASENAME).$(PREFIX1).t1x $(BASENAME).$(PREFIX1).t2x $(apertium_fr_esdir)
118 $(INSTALL_DATA) $(BASENAME).$(PREFIX1).t3x $(BASENAME).$(PREFIX2).t1x $(apertium_fr_esdir)
119 $(INSTALL_DATA) $(BASENAME).$(PREFIX2).t2x $(BASENAME).$(PREFIX2).t3x $(apertium_fr_esdir)
121 CLEANFILES = -rf $(TARGETS) modes $(BASENAME).$(LANG1).dix