Adding more stuff
[apertium.git] / apertium-tr-az / Makefile.am
blob96e02e37c20e53cab905c4374bb36f702282c54c
1 VERSION=0.1
2 LANG1=tr
3 LANG2=az
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
23      
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).$(LANG1).dix.xml \
85            $(BASENAME).$(LANG2).dix.xml \
86            $(BASENAME).$(PREFIX1).dix.xml \
87            $(PREFIX1).prob $(PREFIX2).prob \
88            $(BASENAME).$(PREFIX1).t1x $(BASENAME).$(PREFIX1).t2x \
89            $(BASENAME).$(PREFIX1).t3x $(BASENAME).$(PREFIX2).t1x \
90            $(BASENAME).$(PREFIX2).t2x $(BASENAME).$(PREFIX2).t3x \
91            modes.xml
93 #           $(LANG1)-tagger-data/README $(LANG2)-tagger-data/README 
94 #           $(BASENAME).$(LANG1).tsx 
95 #           $(BASENAME).$(LANG2).tsx  
97 clean-dicts:
98         touch $(BASENAME).$(LANG1).dix $(BASENAME).$(LANG2).dix $(BASENAME).$(PREFIX1).dix
99         rm $(BASENAME).$(LANG1).dix
100         rm $(BASENAME).$(LANG2).dix
101         rm $(BASENAME).$(PREFIX1).dix
102         
103 apertium_tr_azdir=$(prefix)/share/apertium/apertium-$(PREFIX1)/
104 apertium_tr_modesdir=$(prefix)/share/apertium/modes/
106 $(PREFIX1).mode: modes.xml 
107         apertium-gen-modes modes.xml
109 $(PREFIX2).mode: modes.xml 
110         apertium-gen-modes modes.xml
112 apertium_tr_az_DATA=$(PREFIX1).automorf.bin $(PREFIX2).automorf.bin \
113                     $(PREFIX1).autobil.bin $(PREFIX2).autobil.bin \
114                     $(PREFIX1).autogen.bin $(PREFIX2).autogen.bin \
115                     $(PREFIX1).autopgen.bin \
116                     $(PREFIX2).autopgen.bin \
117                     $(PREFIX1).prob $(PREFIX2).prob \
118                     $(PREFIX1).t1x.bin $(PREFIX1).t2x.bin $(PREFIX1).t3x.bin \
119                     $(PREFIX2).t1x.bin $(PREFIX2).t2x.bin $(PREFIX2).t3x.bin \
120                     $(PREFIX1).mode $(PREFIX2).mode
121                   
122 install-data-local:
123         $(prefix)/bin/apertium-gen-modes modes.xml apertium-$(PREFIX1)
124         $(INSTALL_DATA) $(PREFIX1).mode $(apertium_tr_modesdir)
125         $(INSTALL_DATA) $(PREFIX2).mode $(apertium_tr_modesdir)
126         $(INSTALL_DATA) $(BASENAME).$(PREFIX1).t1x $(BASENAME).$(PREFIX1).t2x $(apertium_tr_azdir)
127         $(INSTALL_DATA) $(BASENAME).$(PREFIX1).t3x $(BASENAME).$(PREFIX2).t1x $(apertium_tr_azdir)
128         $(INSTALL_DATA) $(BASENAME).$(PREFIX2).t2x $(BASENAME).$(PREFIX2).t3x $(apertium_tr_azdir)
130 CLEANFILES = -rf $(TARGETS_COMMON) modes