4 PREFIX1=$(LANG2)-$(LANG1)
5 PREFIX2=$(LANG2)-$(LANG1)-translit
7 BASENAME=apertium-eo-ca
8 BILNAME=apertium-eo-ca.eo-ca.dix
10 TARGETS_COMMON = $(PREFIX1).automorf.bin $(PREFIX1).autobil.bin $(PREFIX1).autogen.bin \
11 $(PREFIX2).autobil.bin $(PREFIX2).autogen.bin $(PREFIX1).autopgen.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 $(PREFIX1).mode $(PREFIX2).mode
15 TARGETS = $(TARGETS_COMMON)
17 $(PREFIX1).automorf.bin: $(BASENAME).$(LANG2).dix
18 apertium-validate-dictionary $(BASENAME).$(LANG2).dix
19 lt-comp lr $(BASENAME).$(LANG2).dix $@
21 $(PREFIX1).autobil.bin: $(BILNAME)
22 apertium-validate-dictionary $(BILNAME)
23 lt-comp rl $(BILNAME) $@
25 $(BILNAME).translit: $(BILNAME)
26 ./transliterate.sh $(BILNAME) >$@
28 $(PREFIX2).autobil.bin: $(BILNAME).translit
29 apertium-validate-dictionary $(BILNAME).translit
30 lt-comp rl $(BILNAME).translit $@
32 $(PREFIX1).autogen.bin: $(BASENAME).$(LANG1).dix
33 apertium-validate-dictionary $(BASENAME).$(LANG1).dix
34 lt-comp rl $(BASENAME).$(LANG1).dix $@
36 $(BASENAME).$(LANG1).dix.translit: $(BASENAME).$(LANG1).dix
37 ./transliterate.sh $(BASENAME).$(LANG1).dix >$@
39 $(PREFIX2).autogen.bin: $(BASENAME).$(LANG1).dix.translit
40 apertium-validate-dictionary $(BASENAME).$(LANG1).dix.translit
41 lt-comp rl $(BASENAME).$(LANG1).dix.translit $@
43 $(PREFIX1).autopgen.bin: $(BASENAME).post-$(LANG1).dix
44 apertium-validate-dictionary $(BASENAME).post-$(LANG1).dix
45 lt-comp lr $(BASENAME).post-$(LANG1).dix $@
47 $(BASENAME).post-$(LANG1).dix.translit: $(BASENAME).post-$(LANG1).dix
48 ./transliterate.sh $(BASENAME).post-$(LANG1).dix >$@
50 $(PREFIX2).autopgen.bin: $(BASENAME).post-$(LANG1).dix.translit
51 apertium-validate-dictionary $(BASENAME).post-$(LANG1).dix.translit
52 lt-comp lr $(BASENAME).post-$(LANG1).dix.translit $@
54 $(PREFIX1).t1x.bin: $(BASENAME).$(PREFIX1).t1x
55 apertium-validate-transfer $(BASENAME).$(PREFIX1).t1x
56 apertium-preprocess-transfer $(BASENAME).$(PREFIX1).t1x $@
58 $(BASENAME).$(PREFIX1).t1x.translit: $(BASENAME).$(PREFIX1).t1x
59 ./transliterate.sh $(BASENAME).$(PREFIX1).t1x >$@
61 $(PREFIX2).t1x.bin: $(BASENAME).$(PREFIX1).t1x.translit
62 apertium-validate-transfer $(BASENAME).$(PREFIX1).t1x.translit
63 apertium-preprocess-transfer $(BASENAME).$(PREFIX1).t1x.translit $@
66 $(PREFIX1).t2x.bin: $(BASENAME).$(PREFIX1).t2x
67 apertium-validate-interchunk $(BASENAME).$(PREFIX1).t2x
68 apertium-preprocess-transfer $(BASENAME).$(PREFIX1).t2x $@
70 $(BASENAME).$(PREFIX1).t2x.translit: $(BASENAME).$(PREFIX1).t2x
71 ./transliterate.sh $(BASENAME).$(PREFIX1).t2x >$@
73 $(PREFIX2).t2x.bin: $(BASENAME).$(PREFIX1).t2x.translit
74 apertium-validate-interchunk $(BASENAME).$(PREFIX1).t2x.translit
75 apertium-preprocess-transfer $(BASENAME).$(PREFIX1).t2x.translit $@
78 $(PREFIX1).t3x.bin: $(BASENAME).$(PREFIX1).t3x
79 apertium-validate-postchunk $(BASENAME).$(PREFIX1).t3x
80 apertium-preprocess-transfer $(BASENAME).$(PREFIX1).t3x $@
82 $(BASENAME).$(PREFIX1).t3x.translit: $(BASENAME).$(PREFIX1).t3x
83 ./transliterate.sh $(BASENAME).$(PREFIX1).t3x >$@
85 $(PREFIX2).t3x.bin: $(BASENAME).$(PREFIX1).t3x.translit
86 apertium-validate-postchunk $(BASENAME).$(PREFIX1).t3x.translit
87 apertium-preprocess-transfer $(BASENAME).$(PREFIX1).t3x.translit $@
89 EXTRA_DIST=$(BASENAME).$(LANG1).dix $(BILNAME) \
90 $(BASENAME).post-$(LANG1).dix \
91 $(BASENAME).$(LANG2).dix \
93 $(BASENAME).$(PREFIX1).t1x $(BASENAME).$(PREFIX1).t2x \
94 $(BASENAME).$(PREFIX1).t3x \
95 transliterate.sh modes.xml
97 apertium_eo_ca_DATA=$(PREFIX1).automorf.bin \
98 $(PREFIX1).autobil.bin $(PREFIX2).autobil.bin \
99 $(PREFIX1).autogen.bin $(PREFIX2).autogen.bin \
100 $(PREFIX1).autopgen.bin $(PREFIX2).autopgen.bin \
102 $(PREFIX1).t1x.bin $(PREFIX1).t2x.bin $(PREFIX1).t3x.bin \
103 $(PREFIX2).t1x.bin $(PREFIX2).t2x.bin $(PREFIX2).t3x.bin \
104 $(BASENAME).$(PREFIX1).t1x $(BASENAME).$(PREFIX1).t2x $(BASENAME).$(PREFIX1).t3x \
105 $(BASENAME).$(PREFIX1).t1x.translit $(BASENAME).$(PREFIX1).t2x.translit $(BASENAME).$(PREFIX1).t3x.translit \
106 $(PREFIX1).mode $(PREFIX2).mode
108 apertium_eo_cadir=$(prefix)/share/apertium/apertium-$(PREFIX1)/
109 apertium_eo_camodesdir=$(prefix)/share/apertium/modes/
111 $(PREFIX1).mode: modes.xml
112 apertium-gen-modes modes.xml
115 $(PREFIX2).mode: modes.xml
116 apertium-gen-modes modes.xml
120 apertium-gen-modes modes.xml
123 apertium-gen-modes modes.xml apertium-$(PREFIX1)
124 $(INSTALL_DATA) $(PREFIX1).mode $(apertium_eo_camodesdir)
125 $(INSTALL_DATA) $(PREFIX2).mode $(apertium_eo_camodesdir)
126 $(INSTALL_DATA) $(BASENAME).$(PREFIX1).t1x $(BASENAME).$(PREFIX1).t2x $(apertium_eo_cadir)
127 $(INSTALL_DATA) $(BASENAME).$(PREFIX1).t3x $(BASENAME).$(PREFIX1).t1x.translit $(apertium_eo_cadir)
128 $(INSTALL_DATA) $(BASENAME).$(PREFIX1).t2x.translit $(BASENAME).$(PREFIX1).t3x.translit $(apertium_eo_cadir)
131 CLEANFILES = -rf $(TARGETS) *.translit modes