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 $(PREFIX1).t1x.bin $(PREFIX1).t2x.bin $(PREFIX1).t3x.bin modes
12 TARGETS = $(TARGETS_COMMON) trules-$(PREFIX1).bin trules-$(PREFIX2).bin \
13 trules-$(PREFIX1).xml trules-$(PREFIX2).xml
14 # $(BASENAME).$(LANG1)-lextor.dix $(BASENAME).$(LANG2)-lextor.dix \
15 # $(BASENAME).$(PREFIX1)-lextor.dix $(BASENAME).$(PREFIX2)-lextor.dix
17 $(PREFIX1).automorf.bin: $(BASENAME).$(LANG1).dix
18 apertium-validate-dictionary $(BASENAME).$(LANG1).dix
19 lt-comp lr $(BASENAME).$(LANG1).dix $@
21 $(PREFIX1).autobil.bin: $(BASENAME).$(PREFIX1).dix
22 apertium-validate-dictionary $(BASENAME).$(PREFIX1).dix
23 ##NO TOCAR apertium-gen-oldbil $(BASENAME).$(PREFIX1).dix tmp$(PREFIX1).autobil.dix
24 ## xsltproc translate-to-default-equivalent.xsl $(BASENAME).$(PREFIX1).dix >tmp$(PREFIX1).autobil.dix
25 lt-comp lr $(BASENAME).$(PREFIX1).dix $@
26 ## rm tmp$(PREFIX1).autobil.dix
28 $(PREFIX1).autogen.bin: $(BASENAME).$(LANG2).dix
29 apertium-validate-dictionary $(BASENAME).$(LANG2).dix
30 lt-comp rl $(BASENAME).$(LANG2).dix $@
32 $(PREFIX1).autopgen.bin: $(BASENAME).post-$(LANG2).dix
33 apertium-validate-dictionary $(BASENAME).post-$(LANG2).dix
34 lt-comp lr $(BASENAME).post-$(LANG2).dix $@
36 ##$(PREFIX2).automorf.bin: $(BASENAME).$(LANG2).dix
37 ## apertium-validate-dictionary $(BASENAME).$(LANG2).dix
38 ## lt-comp lr $(BASENAME).$(LANG2).dix $@
40 ##$(PREFIX2).autobil.bin: $(BASENAME).$(PREFIX1).dix
41 ## apertium-validate-dictionary $(BASENAME).$(PREFIX1).dix
42 ##NO TOCAR apertium-gen-oldbil $(BASENAME).$(PREFIX1).dix tmp$(PREFIX2).autobil.dix
43 ## xsltproc translate-to-default-equivalent.xsl $(BASENAME).$(PREFIX1).dix >tmp$(PREFIX2).autobil.dix
44 ## lt-comp rl tmp$(PREFIX2).autobil.dix $@
45 ## rm tmp$(PREFIX2).autobil.dix
47 ##$(PREFIX2).autogen.bin: $(BASENAME).$(LANG1).metadix
48 ## @xsltproc buscaPar.xsl apertium-en-ca.en.metadix | uniq > tmp2gen.xsl
49 ## @xsltproc tmp2gen.xsl apertium-en-ca.en.metadix >$(BASENAME).$(LANG1).dixtmp2
51 ## apertium-validate-dictionary $(BASENAME).$(LANG1).dixtmp2
52 ## lt-comp rl $(BASENAME).$(LANG1).dixtmp2 $@
53 ## @rm $(BASENAME).$(LANG1).dixtmp2
55 ##$(PREFIX2).autopgen.bin: $(BASENAME).post-$(LANG1).dix
56 ## apertium-validate-dictionary $(BASENAME).post-$(LANG1).dix
57 ## lt-comp lr $(BASENAME).post-$(LANG1).dix $@
59 ##trules-$(PREFIX1).bin: $(BASENAME).trules-$(PREFIX1).xml
60 ## apertium-validate-transfer $(BASENAME).trules-$(PREFIX1).xml
61 ## apertium-preprocess-transfer $(BASENAME).trules-$(PREFIX1).xml \
62 ## trules-$(PREFIX1).bin
64 ##trules-$(PREFIX2).bin: $(BASENAME).trules-$(PREFIX2).xml
65 ## apertium-validate-transfer $(BASENAME).trules-$(PREFIX2).xml
66 ## apertium-preprocess-transfer $(BASENAME).trules-$(PREFIX2).xml \
67 ## trules-$(PREFIX2).bin
69 ##trules-$(PREFIX1).xml: $(BASENAME).trules-$(PREFIX1).xml
70 ## ln -s $(BASENAME).trules-$(PREFIX1).xml trules-$(PREFIX1).xml
72 ##trules-$(PREFIX2).xml: $(BASENAME).trules-$(PREFIX2).xml
73 ## ln -s $(BASENAME).trules-$(PREFIX2).xml trules-$(PREFIX2).xml
76 ##$(BASENAME).$(LANG1)-lextor.dix: $(BASENAME).$(PREFIX1).dix
77 ## apertium-validate-dictionary $(BASENAME).$(PREFIX1).dix
78 ## apertium-gen-lextormono rl $(BASENAME).$(PREFIX1).dix $@
80 ##$(BASENAME).$(LANG2)-lextor.dix: $(BASENAME).$(PREFIX1).dix
81 ## apertium-validate-dictionary $(BASENAME).$(PREFIX1).dix
82 ## apertium-gen-lextormono lr $(BASENAME).$(PREFIX1).dix $@
84 ##$(PREFIX1).lextormono.bin: $(BASENAME).$(LANG1)-lextor.dix
85 ## lt-comp lr $(BASENAME).$(LANG1)-lextor.dix $@
87 ##$(PREFIX2).lextormono.bin: $(BASENAME).$(LANG2)-lextor.dix
88 ## lt-comp lr $(BASENAME).$(LANG2)-lextor.dix $@
91 ##$(BASENAME).$(PREFIX1)-lextor.dix: $(BASENAME).$(PREFIX1).dix
92 ## apertium-validate-dictionary $(BASENAME).$(PREFIX1).dix
93 ## apertium-gen-lextorbil rl $(BASENAME).$(PREFIX1).dix $@
95 ##$(BASENAME).$(PREFIX2)-lextor.dix: $(BASENAME).$(PREFIX1).dix
96 ## apertium-validate-dictionary $(BASENAME).$(PREFIX1).dix
97 ## apertium-gen-lextorbil lr $(BASENAME).$(PREFIX1).dix $@
99 ##$(PREFIX1).lextorbil.bin: $(BASENAME).$(PREFIX1)-lextor.dix
100 ## lt-comp lr $(BASENAME).$(PREFIX1)-lextor.dix $@
102 ##$(PREFIX2).lextorbil.bin: $(BASENAME).$(PREFIX2)-lextor.dix
103 ## lt-comp lr $(BASENAME).$(PREFIX2)-lextor.dix $@
105 $(PREFIX1).t1x.bin: $(BASENAME).$(PREFIX1).t1x
106 apertium-validate-transfer $(BASENAME).$(PREFIX1).t1x
107 apertium-preprocess-transfer $(BASENAME).$(PREFIX1).t1x $@
109 $(PREFIX1).t2x.bin: $(BASENAME).$(PREFIX1).t2x
110 apertium-validate-interchunk $(BASENAME).$(PREFIX1).t2x
111 apertium-preprocess-transfer $(BASENAME).$(PREFIX1).t2x $@
113 $(PREFIX1).t3x.bin: $(BASENAME).$(PREFIX1).t3x
114 apertium-validate-postchunk $(BASENAME).$(PREFIX1).t3x
115 apertium-preprocess-transfer $(BASENAME).$(PREFIX1).t3x $@
117 ##$(PREFIX2).t1x.bin: $(BASENAME).$(PREFIX2).t1x
118 ## apertium-validate-transfer $(BASENAME).$(PREFIX2).t1x
119 ## apertium-preprocess-transfer $(BASENAME).$(PREFIX2).t1x $@
121 ##$(PREFIX2).t2x.bin: $(BASENAME).$(PREFIX2).t2x
122 ## apertium-validate-interchunk $(BASENAME).$(PREFIX2).t2x
123 ## apertium-preprocess-transfer $(BASENAME).$(PREFIX2).t2x $@
125 ##$(PREFIX2).t3x.bin: $(BASENAME).$(PREFIX2).t3x
126 ## apertium-validate-postchunk $(BASENAME).$(PREFIX2).t3x
127 ## apertium-preprocess-transfer $(BASENAME).$(PREFIX2).t3x $@
130 EXTRA_DIST=$(BASENAME).$(LANG1).dix $(BASENAME).$(PREFIX1).dix \
131 $(BASENAME).post-$(LANG1).dix $(BASENAME).post-$(LANG2).dix \
132 $(BASENAME).$(LANG2).dix $(BASENAME).$(LANG1).tsx \
133 $(BASENAME).$(LANG2).tsx \
135 buscaPar.xsl principal.xsl \
136 $(PREFIX1)-supervised.make $(PREFIX1)-unsupervised.make \
137 $(LANG1)-tagger-data/README $(LANG2)-tagger-data/README \
138 $(BASENAME).$(PREFIX1).t1x $(BASENAME).$(PREFIX1).t2x \
139 $(BASENAME).$(PREFIX1).t3x $(BASENAME).$(PREFIX2).t1x \
140 $(BASENAME).$(PREFIX2).t2x $(BASENAME).$(PREFIX2).t3x \
144 apertium-gen-modes modes.xml
147 $(PREFIX1).mode: modes.xml
148 apertium-gen-modes modes.xml
150 cp $(PREFIX1).mode modes/
152 apertium_eu_esdir=$(prefix)/share/apertium/apertium-$(PREFIX1)/
153 apertium_eu_modesdir=$(prefix)/share/apertium/modes/
155 apertium_eu_es_DATA=$(PREFIX1).automorf.bin \
156 $(PREFIX1).autobil.bin \
157 $(PREFIX1).autogen.bin \
158 $(PREFIX1).autopgen.bin \
160 $(PREFIX1).t1x.bin $(PREFIX1).t2x.bin $(PREFIX1).t3x.bin \
165 apertium-gen-modes modes.xml apertium-$(PREFIX1)
166 $(INSTALL_DATA) $(PREFIX1).mode $(apertium_eu_modesdir)
167 $(INSTALL_DATA) $(BASENAME).$(PREFIX1).t1x $(BASENAME).$(PREFIX1).t2x $(apertium_eu_esdir)
168 $(INSTALL_DATA) $(BASENAME).$(PREFIX1).t3x $(apertium_eu_esdir)
170 CLEANFILES = -r $(TARGETS)