Debian Codegraph @

apertium-rus-0.2.1/Makefile.am

raw
1 ###############################################################################
2 ## Makefile for apertium-rus
3 ###############################################################################
4
5 LANG1=rus
6 BASENAME=apertium-$(LANG1)
7
8 TARGETS_COMMON = $(LANG1).automorf.bin $(LANG1).autogen.bin $(LANG1).autopgen.bin \
9 $(LANG1).automorf.att.gz $(LANG1).autogen.att.gz \
10 $(LANG1).rlx.bin
11
12 # This include defines goals for install-modes, .deps/.d and .mode files:
13 @ap_include@
14
15 ###############################################################################
16 ## Russian transducer
17 ###############################################################################
18
19 $(LANG1).autogen.bin: $(BASENAME).$(LANG1).dix
20 apertium-validate-dictionary $<
21 lt-comp rl $< $@ $(BASENAME).$(LANG1).acx
22
23 $(LANG1).automorf.bin: $(BASENAME).$(LANG1).dix
24 apertium-validate-dictionary $<
25 lt-comp lr $< $@ $(BASENAME).$(LANG1).acx
26
27 $(LANG1).autopgen.bin: $(BASENAME).post-$(LANG1).dix
28 lt-comp lr $< $@
29
30 $(LANG1).autogen.att.gz: $(LANG1).autogen.bin
31 lt-print $< | gzip -9 -c -n > $@
32
33 $(LANG1).automorf.att.gz: $(LANG1).automorf.bin
34 lt-print $< | gzip -9 -c -n > $@
35
36 ###############################################################################
37 ## Disambiguation rules
38 ###############################################################################
39
40 $(LANG1).rlx.bin: $(BASENAME).$(LANG1).rlx
41 cg-comp $< $@
42
43 ###############################################################################
44 ## Distribution
45 ###############################################################################
46 EXTRA_DIST=$(BASENAME).$(LANG1).dix \
47 $(BASENAME).post-$(LANG1).dix \
48 $(BASENAME).$(LANG1).acx \
49 $(BASENAME).$(LANG1).rlx \
50 $(LANG1).prob \
51 modes.xml
52
53 ###############################################################################
54 ## Installation stuff
55 ###############################################################################
56 #
57 # apertium_rus_dir: This is where the compiled binaries go
58 # apertium_rus_srcdir: This is where the source files go
59
60 apertium_rusdir=$(prefix)/share/apertium/$(BASENAME)/
61 apertium_rus_srcdir=$(prefix)/share/apertium/$(BASENAME)/
62
63 apertium_rus_DATA=$(TARGETS_COMMON) $(LANG1).prob
64
65 pkgconfigdir = $(prefix)/share/pkgconfig
66 pkgconfig_DATA = $(BASENAME).pc
67
68 noinst_DATA=modes/$(LANG1)-morph.mode
69
70 install-data-local: install-modes
71 test -d $(DESTDIR)$(apertium_rus_srcdir) || mkdir -p $(DESTDIR)$(apertium_rus_srcdir)
72 $(INSTALL_DATA) $(BASENAME).$(LANG1).dix $(DESTDIR)$(apertium_rus_srcdir)
73 $(INSTALL_DATA) $(BASENAME).$(LANG1).rlx $(DESTDIR)$(apertium_rus_srcdir)
74 $(INSTALL_DATA) $(BASENAME).post-$(LANG1).dix $(DESTDIR)$(apertium_rus_srcdir)
75
76 ###############################################################################
77 ## Cleanup
78 ###############################################################################
79
80 CLEANFILES = $(TARGETS_COMMON)
81 clean-local:
82 -rm -rf .deps modes