Debian Codegraph @

apertium-arg-0.2.0/Makefile.am

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