Debian Codegraph @

apertium-nob-1.4.0/Makefile.am

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