Debian Codegraph @

apertium-dan-0.7.0/Makefile.am

raw
1 ###############################################################################
2 ## Makefile for apertium-dan
3 ###############################################################################
4
5 LANG1=dan
6 BASENAME=apertium-$(LANG1)
7
8 TARGETS_COMMON = $(LANG1).automorf.bin \
9 $(LANG1).autogen.bin $(LANG1).autopgen.bin \
10 $(LANG1).automorf.att.gz $(LANG1).autogen.att.gz \
11 $(LANG1).seg.rlx.bin \
12 $(LANG1).rlx.bin
13
14 # Use this goal for creating .deps, otherwise make -j2 will give problems:
15 @ap_include@
16
17 ###############################################################################
18 ## Danish transducer
19 ###############################################################################
20
21 $(LANG1).autogen.bin: $(BASENAME).$(LANG1).dix .deps/.d
22 apertium-validate-dictionary $<
23 lt-comp rl $< $@ $(BASENAME).$(LANG1).acx
24
25 $(LANG1).automorf.bin: $(BASENAME).$(LANG1).dix
26 apertium-validate-dictionary $<
27 lt-comp lr $< $@ $(BASENAME).$(LANG1).acx
28
29 $(LANG1).autogen.att.gz: $(LANG1).autogen.bin
30 lt-print $< | gzip -9 -c -n > $@
31
32 $(LANG1).automorf.att.gz: $(LANG1).automorf.bin
33 lt-print $< | gzip -9 -c -n > $@
34
35 $(LANG1).autopgen.bin: $(BASENAME).post-$(LANG1).dix
36 lt-comp lr $< $@
37
38 ###############################################################################
39 ## Distribution
40 ###############################################################################
41 EXTRA_DIST=$(BASENAME).$(LANG1).dix \
42 $(BASENAME).$(LANG1).acx \
43 $(BASENAME).$(LANG1).rlx \
44 $(BASENAME).$(LANG1).seg.rlx \
45 $(BASENAME).post-$(LANG1).dix \
46 $(LANG1).prob \
47 modes.xml
48
49 ###############################################################################
50 ## Installation stuff
51 ###############################################################################
52 #
53 # apertium_dan_dir: This is where the compiled binaries go
54 # apertium_dan_srcdir: This is where the source files go
55
56 apertium_dandir=$(prefix)/share/apertium/$(BASENAME)/
57 apertium_dan_srcdir=$(prefix)/share/apertium/$(BASENAME)/
58
59 apertium_dan_DATA=$(TARGETS_COMMON) $(LANG1).prob \
60 $(BASENAME).$(LANG1).dix \
61 $(BASENAME).$(LANG1).rlx \
62 $(BASENAME).$(LANG1).seg.rlx \
63 $(BASENAME).post-$(LANG1).dix
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 uninstall-local: uninstall-modes
72
73 CLEANFILES = $(TARGETS_COMMON)
74 clean-local:
75 -rm -rf .deps modes
76
77 ###############################################################################
78 ## Test
79 ###############################################################################
80
81 test: all
82 apertium-regtest test
83
84 check: test