Debian Codegraph @

apertium-srd-1.5.0/Makefile.am

raw
1 ###############################################################################
2 ## Makefile for apertium-srd
3 ###############################################################################
4
5 LANG1=srd
6 BASENAME=apertium-$(LANG1)
7
8 VAR1=#deixar en blanc
9 VAR2=_meridional
10
11
12 TARGETS_COMMON = \
13 $(LANG1).automorf.bin \
14 $(LANG1).automorf.att.gz \
15 $(LANG1)$(VAR1).autogen.bin \
16 $(LANG1)$(VAR2).autogen.bin \
17 $(LANG1).autogen.att.gz \
18 $(LANG1).autopgen.bin \
19 $(LANG1).rlx.bin
20
21 # Use this goal for creating .deps, otherwise make -j2 will give problems:
22 @ap_include@
23
24 ###############################################################################
25 ## Sardinian transducer
26 ###############################################################################
27
28 .deps/$(BASENAME).$(LANG1).srd.dix: $(BASENAME).$(LANG1).dix .deps/.d
29 apertium-validate-dictionary $<
30 apertium-genvdix sep $< >$@
31
32 .deps/$(BASENAME).$(LANG1).srd_meridional.dix: $(BASENAME).$(LANG1).dix .deps/.d
33 apertium-validate-dictionary $<
34 apertium-genvdix mer $< >$@
35
36 $(LANG1)$(VAR1).autogen.bin: .deps/$(BASENAME).$(LANG1).srd.dix
37 apertium-validate-dictionary $<
38 lt-comp -v sep rl $< $@ $(BASENAME).$(LANG1).acx
39
40 $(LANG1)$(VAR2).autogen.bin: .deps/$(BASENAME).$(LANG1).srd_meridional.dix
41 apertium-validate-dictionary $<
42 lt-comp -v mer rl $< $@ $(BASENAME).$(LANG1).acx
43
44 $(LANG1).automorf.bin: $(BASENAME).$(LANG1).dix
45 apertium-validate-dictionary $<
46 lt-comp lr $< $@ $(BASENAME).$(LANG1).acx
47
48 $(LANG1).autogen.att.gz: $(LANG1).autogen.bin
49 lt-print $< | gzip -n -9 -c > $@
50
51 $(LANG1).automorf.att.gz: $(LANG1).automorf.bin
52 lt-print $< | gzip -n -9 -c > $@
53
54 $(LANG1).autopgen.bin: $(BASENAME).post-$(LANG1).dix
55 lt-comp lr $< $@
56
57 ###############################################################################
58 ## Disambiguation rules
59 ###############################################################################
60
61 $(LANG1).rlx.bin: $(BASENAME).$(LANG1).rlx
62 cg-comp $< $@
63
64 ###############################################################################
65 ## Distribution
66 ###############################################################################
67 EXTRA_DIST=$(BASENAME).$(LANG1).dix \
68 $(BASENAME).$(LANG1).acx \
69 $(BASENAME).$(LANG1).rlx \
70 $(BASENAME).post-$(LANG1).dix \
71 $(LANG1).prob \
72 modes.xml
73
74 ###############################################################################
75 ## Installation stuff
76 ###############################################################################
77 #
78 # apertium_srd_dir: This is where the compiled binaries go
79 # apertium_srd_srcdir: This is where the source files go
80
81 apertium_srddir=$(prefix)/share/apertium/$(BASENAME)/
82
83 apertium_srd_DATA=$(TARGETS_COMMON) $(LANG1).prob \
84 $(BASENAME).$(LANG1).dix \
85 $(BASENAME).$(LANG1).rlx \
86 $(BASENAME).post-$(LANG1).dix
87
88 pkgconfigdir = $(prefix)/share/pkgconfig
89 pkgconfig_DATA = $(BASENAME).pc
90
91 noinst_DATA=modes/$(LANG1)-morph.mode
92
93 install-data-local: install-modes
94
95 CLEANFILES = $(TARGETS_COMMON)
96 clean-local:
97 -rm -rf .deps modes
98
99 ###############################################################################
100 ## Test
101 ###############################################################################
102
103 test: all
104 apertium-regtest test