| 1 |
############################################################################### |
| 2 |
## Makefile for apertium-spa |
| 3 |
############################################################################### |
| 4 |
|
| 5 |
LANG1=spa |
| 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 |
$(LANG1).lrx.bin |
| 16 |
|
| 17 |
# Use this goal for creating .deps, otherwise make -j2 will give problems: |
| 18 |
@ap_include@ |
| 19 |
|
| 20 |
############################################################################### |
| 21 |
## Spanish transducer |
| 22 |
############################################################################### |
| 23 |
|
| 24 |
$(LANG1).autogen.bin: $(BASENAME).$(LANG1).dix |
| 25 |
apertium-validate-dictionary $< |
| 26 |
lt-comp rl $< $@ |
| 27 |
|
| 28 |
$(LANG1).automorf.bin: $(BASENAME).$(LANG1).dix $(BASENAME).$(LANG1).acx |
| 29 |
apertium-validate-dictionary $< |
| 30 |
lt-comp lr $(BASENAME).$(LANG1).dix $@ $(BASENAME).$(LANG1).acx |
| 31 |
|
| 32 |
$(LANG1).autogen.att.gz: $(LANG1).autogen.bin |
| 33 |
lt-print $< | gzip -9 -c -n > $@ |
| 34 |
|
| 35 |
$(LANG1).automorf.att.gz: $(LANG1).automorf.bin |
| 36 |
lt-print $< | gzip -9 -c -n > $@ |
| 37 |
|
| 38 |
$(LANG1).autopgen.bin: $(BASENAME).post-$(LANG1).dix |
| 39 |
lt-comp lr $< $@ |
| 40 |
|
| 41 |
############################################################################### |
| 42 |
## Morph disambiguation rules |
| 43 |
############################################################################### |
| 44 |
|
| 45 |
$(LANG1).lrx.bin: $(BASENAME).$(LANG1).lrx |
| 46 |
lrx-comp $< $@ |
| 47 |
|
| 48 |
############################################################################### |
| 49 |
## Disambiguation rules |
| 50 |
############################################################################### |
| 51 |
|
| 52 |
$(LANG1).rlx.bin: $(BASENAME).$(LANG1).rlx |
| 53 |
cg-comp $< $@ |
| 54 |
|
| 55 |
############################################################################### |
| 56 |
## Distribution |
| 57 |
############################################################################### |
| 58 |
EXTRA_DIST=$(BASENAME).$(LANG1).dix \ |
| 59 |
$(BASENAME).post-$(LANG1).dix \ |
| 60 |
$(BASENAME).$(LANG1).acx \ |
| 61 |
$(BASENAME).$(LANG1).rlx \ |
| 62 |
$(BASENAME).$(LANG1).lrx \ |
| 63 |
$(LANG1).prob \ |
| 64 |
modes.xml |
| 65 |
|
| 66 |
############################################################################### |
| 67 |
## Installation stuff |
| 68 |
############################################################################### |
| 69 |
# |
| 70 |
# apertium_spa_dir: This is where the compiled binaries go |
| 71 |
# apertium_spa_srcdir: This is where the source files go |
| 72 |
|
| 73 |
apertium_spadir=$(prefix)/share/apertium/$(BASENAME)/ |
| 74 |
apertium_spa_srcdir=$(prefix)/share/apertium/$(BASENAME)/ |
| 75 |
|
| 76 |
apertium_spa_DATA=$(TARGETS_COMMON) $(LANG1).prob |
| 77 |
|
| 78 |
pkgconfigdir = $(prefix)/share/pkgconfig |
| 79 |
pkgconfig_DATA = $(BASENAME).pc |
| 80 |
|
| 81 |
# Modes are not installed since they're all just "debug modes". All |
| 82 |
# modes are created by this goal. |
| 83 |
modes/$(LANG1)-morph.mode: modes.xml |
| 84 |
apertium-validate-modes modes.xml |
| 85 |
apertium-gen-modes modes.xml |
| 86 |
|
| 87 |
noinst_DATA=modes/$(LANG1)-morph.mode |
| 88 |
|
| 89 |
install-data-local: install-modes |
| 90 |
test -d $(DESTDIR)$(apertium_spa_srcdir) || mkdir -p $(DESTDIR)$(apertium_spa_srcdir) |
| 91 |
$(INSTALL_DATA) $(BASENAME).$(LANG1).dix $(DESTDIR)$(apertium_spa_srcdir) |
| 92 |
$(INSTALL_DATA) $(BASENAME).$(LANG1).rlx $(DESTDIR)$(apertium_spa_srcdir) |
| 93 |
|
| 94 |
CLEANFILES = $(TARGETS_COMMON) |
| 95 |
clean-local: |
| 96 |
-rm -rf .deps modes |