4 PREFIX1=$(LANG1)-$(LANG2)
5 PREFIX2=$(LANG2)-$(LANG1)
7 BASENAME=apertium-$(PREFIX1)
9 TARGETS_COMMON = $(BASENAME).$(LANG1).dix $(BASENAME).$(LANG2).dix $(BASENAME).$(LANG1)-$(LANG2).dix \
10 $(PREFIX1).automorf.bin $(PREFIX1).autobil.bin $(PREFIX1).autogen.bin \
11 $(PREFIX1).autopgen.bin $(PREFIX2).automorf.bin $(PREFIX2).autobil.bin \
12 $(PREFIX2).autogen.bin \
13 $(PREFIX2).autopgen.bin \
14 $(PREFIX1).t1x.bin $(PREFIX1).t2x.bin $(PREFIX1).t3x.bin \
15 $(PREFIX2).t1x.bin $(PREFIX2).t2x.bin $(PREFIX2).t3x.bin modes
17 $(BASENAME).$(LANG1).dix:
18 xmllint --xinclude $(BASENAME).$(LANG1).dix.xml > $(BASENAME).$(LANG1).dix
19 $(BASENAME).$(LANG2).dix:
20 xmllint --xinclude $(BASENAME).$(LANG2).dix.xml > $(BASENAME).$(LANG2).dix
21 $(BASENAME).$(LANG1)-$(LANG2).dix:
22 xmllint --xinclude $(BASENAME).$(LANG1)-$(LANG2).dix.xml > $(BASENAME).$(LANG1)-$(LANG2).dix
24 $(PREFIX1).automorf.bin: $(BASENAME).$(LANG1).dix
25 apertium-validate-dictionary $(BASENAME).$(LANG1).dix
26 lt-comp lr $(BASENAME).$(LANG1).dix $@
28 $(PREFIX1).autobil.bin: $(BASENAME).$(PREFIX1).dix
29 apertium-validate-dictionary $(BASENAME).$(PREFIX1).dix
30 lt-comp lr $(BASENAME).$(PREFIX1).dix $@
32 $(PREFIX1).autogen.bin: $(BASENAME).$(LANG2).dix
33 apertium-validate-dictionary $(BASENAME).$(LANG2).dix
34 lt-comp rl $(BASENAME).$(LANG2).dix $@
36 $(PREFIX1).autopgen.bin: $(BASENAME).post-$(LANG2).dix
37 apertium-validate-dictionary $(BASENAME).post-$(LANG2).dix
38 lt-comp lr $(BASENAME).post-$(LANG2).dix $@
40 $(PREFIX2).automorf.bin: $(BASENAME).$(LANG2).dix
41 apertium-validate-dictionary $(BASENAME).$(LANG2).dix
42 lt-comp lr $(BASENAME).$(LANG2).dix $@
44 $(PREFIX2).autobil.bin: $(BASENAME).$(PREFIX1).dix
45 apertium-validate-dictionary $(BASENAME).$(PREFIX1).dix
46 lt-comp rl $(BASENAME).$(PREFIX1).dix $@
48 $(PREFIX2).autogen.bin: $(BASENAME).$(LANG1).dix
49 apertium-validate-dictionary $(BASENAME).$(LANG1).dix
50 lt-comp rl $(BASENAME).$(LANG1).dix $@
52 $(PREFIX2).autopgen.bin: $(BASENAME).post-$(LANG1).dix
53 apertium-validate-dictionary $(BASENAME).post-$(LANG1).dix
54 lt-comp lr $(BASENAME).post-$(LANG1).dix $@
56 $(PREFIX1).t1x.bin: $(BASENAME).$(PREFIX1).t1x
57 apertium-validate-transfer $(BASENAME).$(PREFIX1).t1x
58 apertium-preprocess-transfer $(BASENAME).$(PREFIX1).t1x $@
60 $(PREFIX1).t2x.bin: $(BASENAME).$(PREFIX1).t2x
61 apertium-validate-interchunk $(BASENAME).$(PREFIX1).t2x
62 apertium-preprocess-transfer $(BASENAME).$(PREFIX1).t2x $@
64 $(PREFIX1).t3x.bin: $(BASENAME).$(PREFIX1).t3x
65 apertium-validate-postchunk $(BASENAME).$(PREFIX1).t3x
66 apertium-preprocess-transfer $(BASENAME).$(PREFIX1).t3x $@
68 $(PREFIX2).t1x.bin: $(BASENAME).$(PREFIX2).t1x
69 apertium-validate-transfer $(BASENAME).$(PREFIX2).t1x
70 apertium-preprocess-transfer $(BASENAME).$(PREFIX2).t1x $@
72 $(PREFIX2).t2x.bin: $(BASENAME).$(PREFIX2).t2x
73 apertium-validate-interchunk $(BASENAME).$(PREFIX2).t2x
74 apertium-preprocess-transfer $(BASENAME).$(PREFIX2).t2x $@
76 $(PREFIX2).t3x.bin: $(BASENAME).$(PREFIX2).t3x
77 apertium-validate-postchunk $(BASENAME).$(PREFIX2).t3x
78 apertium-preprocess-transfer $(BASENAME).$(PREFIX2).t3x $@
81 EXTRA_DIST=$(BASENAME).$(LANG1).dix $(BASENAME).$(PREFIX1).dix \
82 $(BASENAME).post-$(LANG1).dix $(BASENAME).post-$(LANG2).dix \
83 $(BASENAME).$(LANG2).dix \
84 $(BASENAME).$(PREFIX1).t1x $(BASENAME).$(PREFIX1).t2x \
85 $(BASENAME).$(PREFIX1).t3x $(BASENAME).$(PREFIX2).t1x \
86 $(BASENAME).$(PREFIX2).t2x $(BASENAME).$(PREFIX2).t3x \
89 # $(LANG1)-tagger-data/README $(LANG2)-tagger-data/README
90 # $(BASENAME).$(LANG1).tsx
91 # $(BASENAME).$(LANG2).tsx
92 # $(PREFIX1).prob $(PREFIX2).prob
95 rm $(BASENAME).$(LANG1).dix
96 rm $(BASENAME).$(LANG2).dix
97 rm $(BASENAME).$(PREFIX1).dix
99 apertium_es_itdir=$(prefix)/share/apertium/apertium-$(PREFIX1)/
100 apertium_es_modesdir=$(prefix)/share/apertium/modes/
102 $(PREFIX1).mode: modes.xml
103 apertium-gen-modes modes.xml
105 $(PREFIX2).mode: modes.xml
106 apertium-gen-modes modes.xml
108 apertium_es_it_DATA=$(PREFIX1).automorf.bin $(PREFIX2).automorf.bin \
109 $(PREFIX1).autobil.bin $(PREFIX2).autobil.bin \
110 $(PREFIX1).autogen.bin $(PREFIX2).autogen.bin \
111 $(PREFIX1).autopgen.bin \
112 $(PREFIX2).autopgen.bin \
113 $(PREFIX1).t1x.bin $(PREFIX1).t2x.bin $(PREFIX1).t3x.bin \
114 $(PREFIX2).t1x.bin $(PREFIX2).t2x.bin $(PREFIX2).t3x.bin \
115 $(PREFIX1).mode $(PREFIX2).mode
117 # $(PREFIX1).prob $(PREFIX2).prob
120 $(INSTALL_DATA) $(PREFIX1).mode $(apertium_es_modesdir)
121 $(INSTALL_DATA) $(PREFIX2).mode $(apertium_es_modesdir)
123 CLEANFILES = -rf $(TARGETS_COMMON) modes