Debian Codegraph @

apertium-cat-2.12.0/Makefile.am

raw
1 ###############################################################################
2 ## Makefile for apertium-cat
3 ###############################################################################
4
5 LANG1=cat
6 BASENAME=apertium-$(LANG1)
7
8 VAR1=#deixar en blanc
9 VAR2=_valencia
10 VAR3=_valencia_gva
11 VAR4=_valencia_uni
12
13 TARGETS_COMMON = \
14 $(LANG1)$(VAR1).automorf.bin \
15 $(LANG1)$(VAR1).automorf.att.gz \
16 $(LANG1)$(VAR1).autogen.bin \
17 $(LANG1)$(VAR2).autogen.bin \
18 $(LANG1)$(VAR3).autogen.bin \
19 $(LANG1)$(VAR4).autogen.bin \
20 $(LANG1)$(VAR1).autogen.att.gz \
21 $(LANG1)$(VAR1).autopgen.bin \
22 $(LANG1)$(VAR2).autopgen.bin \
23 $(LANG1)$(VAR3).autopgen.bin \
24 $(LANG1)$(VAR4).autopgen.bin \
25 $(LANG1)$(VAR1).rlx.bin \
26 $(LANG1)$(VAR1).prefs.rlx.bin \
27 $(LANG1)$(VAR2).prefs.rlx.bin \
28 $(LANG1)$(VAR3).prefs.rlx.bin \
29 $(LANG1)$(VAR4).prefs.rlx.bin \
30 $(LANG1).pre2017_prefs.rlx.bin
31
32 # Use this goal for creating .deps, otherwise make -j2 will give problems:
33 @ap_include@
34
35 ###############################################################################
36 ## Catalan transducer
37 ###############################################################################
38
39 .deps/$(BASENAME).$(LANG1).dix: $(BASENAME).$(LANG1).metadix .deps/.d
40 python3 convert-metadix-dix.py $< $@
41 apertium-validate-dictionary $@
42
43 $(LANG1)$(VAR1).automorf.bin: .deps/$(BASENAME).$(LANG1).dix $(BASENAME).$(LANG1).acx
44 apertium-validate-dictionary $<
45 lt-comp lr .deps/$(BASENAME).$(LANG1).dix $@ $(BASENAME).$(LANG1).acx
46
47 .deps/$(BASENAME).$(LANG1).cat.dix: .deps/$(BASENAME).$(LANG1).dix .deps/.d
48 apertium-validate-dictionary $<
49 apertium-genvdix cat $< >$@
50
51 .deps/$(BASENAME).$(LANG1).val.dix: .deps/$(BASENAME).$(LANG1).dix .deps/.d
52 apertium-validate-dictionary $<
53 apertium-genvdix val_gva $< >$@
54
55
56 $(LANG1)$(VAR1).autogen.bin: .deps/$(BASENAME).$(LANG1).cat.dix
57 apertium-validate-dictionary $<
58 lt-comp -v cat rl $< $@ $(BASENAME).$(LANG1).acx
59
60 $(LANG1)$(VAR2).autogen.bin: .deps/$(BASENAME).$(LANG1).val.dix
61 apertium-validate-dictionary $<
62 lt-comp -v val_gva rl $< $@ $(BASENAME).$(LANG1).acx
63
64 $(LANG1)$(VAR3).autogen.bin: $(LANG1)$(VAR2).autogen.bin
65 cp $< $@
66
67 $(LANG1)$(VAR4).autogen.bin: $(LANG1)$(VAR2).autogen.bin
68 cp $< $@
69
70 $(LANG1)$(VAR1).autogen.att.gz: $(LANG1).autogen.bin
71 lt-print $< | gzip -9 -c -n > $@
72
73 $(LANG1)$(VAR1).automorf.att.gz: $(LANG1).automorf.bin
74 lt-print $< | gzip -9 -c -n > $@
75
76 $(LANG1)$(VAR1).autopgen.bin: $(BASENAME).post-$(LANG1).dix
77 lt-comp -a cat lr $< $@
78
79 $(LANG1)$(VAR2).autopgen.bin: $(LANG1)$(VAR3).autopgen.bin
80 cp $< $@
81
82 $(LANG1)$(VAR3).autopgen.bin: $(BASENAME).post-$(LANG1).dix
83 lt-comp -a val_gva lr $< $@
84
85 $(LANG1)$(VAR4).autopgen.bin: $(BASENAME).post-$(LANG1).dix
86 lt-comp -a val_uni lr $< $@
87
88 ###############################################################################
89 ## Disambiguation rules
90 ###############################################################################
91
92 $(LANG1).rlx.bin: $(BASENAME).$(LANG1).rlx
93 cg-comp $< $@
94
95 ###############################################################################
96 ## Variant preferences
97 ###############################################################################
98
99 $(LANG1)$(VAR1).prefs.rlx.bin: $(BASENAME).$(LANG1)$(VAR1).prefs.rlx
100 cg-comp $< $@
101
102 $(LANG1)$(VAR2).prefs.rlx.bin: $(BASENAME).$(LANG1)$(VAR2).prefs.rlx
103 cg-comp $< $@
104
105 $(LANG1)$(VAR3).prefs.rlx.bin: $(BASENAME).$(LANG1)$(VAR3).prefs.rlx
106 cg-comp $< $@
107
108 $(LANG1)$(VAR4).prefs.rlx.bin: $(BASENAME).$(LANG1)$(VAR4).prefs.rlx
109 cg-comp $< $@
110
111 $(LANG1).pre2017_prefs.rlx.bin: $(BASENAME).$(LANG1).pre2017_prefs.rlx
112 cg-comp $< $@
113
114 ###############################################################################
115 ## Distribution
116 ###############################################################################
117 EXTRA_DIST=$(BASENAME).$(LANG1).metadix \
118 $(BASENAME).$(LANG1).acx \
119 $(BASENAME).$(LANG1).rlx \
120 $(BASENAME).post-$(LANG1).dix \
121 $(LANG1).prob \
122 $(LANG1).preferences.xml \
123 modes.xml
124
125 ###############################################################################
126 ## Installation stuff
127 ###############################################################################
128 #
129 # apertium_cat_dir: This is where the compiled binaries go
130 # apertium_cat_srcdir: This is where the source files go
131
132 apertium_catdir=$(prefix)/share/apertium/$(BASENAME)/
133 apertium_cat_srcdir=$(prefix)/share/apertium/$(BASENAME)/
134
135 apertium_cat_DATA=$(TARGETS_COMMON) \
136 $(LANG1).prob \
137 $(LANG1).preferences.xml
138
139 pkgconfigdir = $(prefix)/share/pkgconfig
140 pkgconfig_DATA = $(BASENAME).pc
141
142 # Modes are not installed since they're all just "debug modes". All
143 # modes are created by this goal.
144 modes/$(LANG1)-morph.mode: modes.xml
145 apertium-validate-modes modes.xml
146 apertium-gen-modes modes.xml
147
148 noinst_DATA=modes/$(LANG1)-morph.mode
149
150 install-data-local: install-modes
151 test -d $(DESTDIR)$(apertium_cat_srcdir) || mkdir -p $(DESTDIR)$(apertium_cat_srcdir)
152 $(INSTALL_DATA) $(BASENAME).$(LANG1).metadix $(DESTDIR)$(apertium_cat_srcdir)
153 $(INSTALL_DATA) $(BASENAME).$(LANG1).rlx $(DESTDIR)$(apertium_cat_srcdir)
154 $(INSTALL_DATA) $(BASENAME).post-$(LANG1).dix $(DESTDIR)$(apertium_cat_srcdir)
155
156 CLEANFILES = $(TARGETS_COMMON)
157 clean-local:
158 -rm -rf .deps modes
159
160 ###############################################################################
161 ## Test
162 ###############################################################################
163
164 test: all
165 apertium-regtest test