Debian Codegraph @

apertium-nno-1.4.0/Makefile.am

raw
1 ###############################################################################
2 ## Makefile for apertium-nno
3 ###############################################################################
4
5 LANG1=nno
6 BASENAME=apertium-$(LANG1)
7
8 TARGETS_COMMON = $(LANG1).automorf.bin \
9 $(LANG1).autogen.bin \
10 $(LANG1).autogen.att.gz \
11 $(LANG1).autopgen.bin \
12 $(LANG1).automorf.att.gz \
13 $(LANG1).rlx.bin \
14 $(LANG1).seg.rlx.bin \
15 $(LANG1).e_vi_prefs.rlx.bin \
16 $(LANG1).prefs.rlx.bin \
17 $(LANG1).syn.rlx.bin
18
19 # This include defines goals for install-modes, .deps/.d and .mode files:
20 @ap_include@
21
22 ###############################################################################
23 ## Norwegian Nynorsk transducer
24 ###############################################################################
25
26 $(LANG1).autogen.bin: $(BASENAME).$(LANG1).dix
27 apertium-validate-dictionary $<
28 lt-comp rl $< $@
29
30 $(LANG1).automorf.bin: $(BASENAME).$(LANG1).dix $(BASENAME).$(LANG1).acx
31 apertium-validate-dictionary $<
32 apertium-validate-acx $(BASENAME).$(LANG1).acx
33 lt-comp lr $< $@ $(BASENAME).$(LANG1).acx
34
35 $(LANG1).autogen.att.gz: $(LANG1).autogen.bin
36 lt-print $< | gzip -9 -c -n > $@
37
38 $(LANG1).automorf.att.gz: $(LANG1).automorf.bin
39 lt-print $< | gzip -9 -c -n > $@
40
41 $(LANG1).autopgen.bin: $(BASENAME).post-$(LANG1).dix
42 lt-comp lr $< $@
43
44 ###############################################################################
45 ## Distribution
46 ###############################################################################
47 EXTRA_DIST=$(BASENAME).$(LANG1).dix \
48 $(BASENAME).post-$(LANG1).dix \
49 $(BASENAME).$(LANG1).rlx \
50 $(BASENAME).$(LANG1).seg.rlx \
51 $(BASENAME).$(LANG1).syn.rlx \
52 $(LANG1).prob \
53 $(BASENAME).$(LANG1).tsx \
54 $(LANG1).preferences.xml \
55 modes.xml
56
57 ###############################################################################
58 ## Installation stuff
59 ###############################################################################
60 #
61 # apertium_nno_dir: This is where the compiled binaries go
62 # apertium_nno_srcdir: This is where the source files go
63
64 apertium_nnodir=$(prefix)/share/apertium/$(BASENAME)/
65 apertium_nno_srcdir=$(prefix)/share/apertium/$(BASENAME)/
66
67 apertium_nno_DATA=$(TARGETS_COMMON) $(LANG1).prob \
68 $(LANG1).preferences.xml \
69 $(BASENAME).$(LANG1).dix \
70 $(BASENAME).post-$(LANG1).dix \
71 $(BASENAME).$(LANG1).rlx \
72 $(BASENAME).$(LANG1).seg.rlx \
73 $(BASENAME).$(LANG1).syn.rlx \
74 $(BASENAME).$(LANG1).tsx
75
76 pkgconfigdir = $(prefix)/share/pkgconfig
77 pkgconfig_DATA = $(BASENAME).pc
78
79 noinst_DATA=modes/$(LANG1)-morph.mode
80
81 install-data-local: install-modes
82 uninstall-local: uninstall-modes
83
84 ###############################################################################
85 ## Cleanup
86 ###############################################################################
87
88 CLEANFILES = $(TARGETS_COMMON)
89 clean-local:
90 -rm -rf .deps modes
91
92 ###############################################################################
93 ## Test
94 ###############################################################################
95
96 test: all
97 @grep -nE 'lm=".*/([a-zæøå]+)__' $(BASENAME).$(LANG1).dix \
98 | grep -vE '<i?g/?>' \
99 | grep -vE 'lm="(.*)(.*)".*/\2__' \
100 | sed 's%^%WARNING: lemma vs par/tail inconsistency on line %'
101 apertium-regtest test