commit 25dc0bdb97125d7281a963da61514358bd58f4f5 Author: Hèctor Alòs i Font Date: Thu Apr 25 23:54:29 2019 +0300 Tractament pt i br diff --git a/Makefile.am b/Makefile.am index 25ac6e2..57926d2 100644 --- a/Makefile.am +++ b/Makefile.am @@ -7,13 +7,18 @@ VERSION=0.1.0 LANG1=por BASENAME=apertium-$(LANG1) -TARGETS_COMMON = \ - $(LANG1).automorf.bin \ - $(LANG1).automorf.att.gz \ - $(LANG1).autogen.bin \ - $(LANG1).autogen.att.gz \ - $(LANG1).autopgen.bin \ - $(LANG1).rlx.bin +VAR1=#deixar en blanc +VAR2=_bra + +TARGETS_COMMON = \ + $(LANG1)$(VAR1).automorf.bin \ + $(LANG1)$(VAR1).automorf.att.gz \ + $(LANG1)$(VAR1).autogen.bin \ + $(LANG1)$(VAR2).autogen.bin \ + $(LANG1)$(VAR1).autogen.att.gz \ + $(LANG1)$(VAR1).autopgen.bin \ + $(LANG1)$(VAR2).autopgen.bin \ + $(LANG1)$(VAR1).rlx.bin # Use this goal for creating .deps, otherwise make -j2 will give problems: @ap_include@ @@ -22,22 +27,38 @@ TARGETS_COMMON = \ ## Portuguese transducer ############################################################################### -$(LANG1).autogen.bin: $(BASENAME).$(LANG1).dix .deps/.d +.deps/$(BASENAME).$(LANG1).pt.dix: $(BASENAME).$(LANG1).dix .deps/.d apertium-validate-dictionary $< - lt-comp rl $< $@ $(BASENAME).$(LANG1).acx + python genvdix.py pt $< >$@ -$(LANG1).automorf.bin: $(BASENAME).$(LANG1).dix +.deps/$(BASENAME).$(LANG1).br.dix: $(BASENAME).$(LANG1).dix .deps/.d + apertium-validate-dictionary $< + python genvdix.py br $< >$@ + +$(LANG1)$(VAR1).autogen.bin: .deps/$(BASENAME).$(LANG1).pt.dix + apertium-validate-dictionary $< + lt-comp -v pt rl $< $@ $(BASENAME).$(LANG1).acx + +$(LANG1)$(VAR2).autogen.bin: .deps/$(BASENAME).$(LANG1).br.dix + apertium-validate-dictionary $< + lt-comp -v br rl $< $@ $(BASENAME).$(LANG1).acx + + +$(LANG1)$(VAR1).automorf.bin: $(BASENAME).$(LANG1).dix apertium-validate-dictionary $< lt-comp lr $< $@ $(BASENAME).$(LANG1).acx -$(LANG1).autogen.att.gz: $(LANG1).autogen.bin +$(LANG1)$(VAR1).autogen.att.gz: $(LANG1).autogen.bin lt-print $< | gzip -9 -c -n > $@ -$(LANG1).automorf.att.gz: $(LANG1).automorf.bin +$(LANG1)$(VAR1).automorf.att.gz: $(LANG1).automorf.bin lt-print $< | gzip -9 -c -n > $@ -$(LANG1).autopgen.bin: $(BASENAME).post-$(LANG1).dix - lt-comp lr $< $@ +$(LANG1)$(VAR1).autopgen.bin: $(BASENAME).post-$(LANG1).dix + lt-comp -a pt lr $< $@ + +$(LANG1)$(VAR2).autopgen.bin: $(BASENAME).post-$(LANG1).dix + lt-comp -a br lr $< $@ ############################################################################### ## Disambiguation rules