Skip to content

Commit

Permalink
ext build fixes after move, fixes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
flammie committed Aug 13, 2024
1 parent 7ce799c commit 9aa1fc9
Show file tree
Hide file tree
Showing 45 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ banner:
test: check

update:
git subtree pull --prefix src/fst/ext-Apertium-nno https://github.com/apertium/apertium-nno.git master --squash
git subtree pull --prefix src/fst/morphology/ext-Apertium-nno https://github.com/apertium/apertium-nno.git master --squash

# recurse all make devs just
dev:
Expand Down
11 changes: 6 additions & 5 deletions src/fst/morphology/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ endif
####### Morphology source file defs: ########

# Set this to name of lexc file containing Multichar_Symbols and LEXICON Root
GT_LEXC_ROOT=$(srcdir)/ext-Apertium-$(GLANG)/apertium-$(GLANG).$(GLANG).dix
GT_LEXC_ROOT=

# Set this to the names of all regular lexc source files:
GT_LEXC_SRCS_L1_L2=affixes/symbols.lexc
Expand Down Expand Up @@ -109,21 +109,22 @@ $(srcdir)/ext-Apertium-$(GLANG)/$(GLANG).automorf.att.gz: $(GT_LEXC_ROOT) \
$(srcdir)/ext-Apertium-$(GLANG)/configure
$(AM_V_GEN)cd $(dir $@ ) && $(MAKE) $(notdir $@ )

lexicon.tmp.hfst: ext-Apertium-$(GLANG)/$(GLANG).automorf.att.gz
.generated/lexicon.tmp.hfst: ext-Apertium-$(GLANG)/$(GLANG).automorf.att.gz \
$(GENDIR)
$(AM_V_TXT2FST)gunzip --stdout $< \
| sed -e "s/ /\'@_SPACE_@\'/g" \
| $(HFST_TXT2FST) $(MORE_VERBOSITY) $(HFST_FORMAT) --epsilon=ε \
| $(HFST_INVERT) $(MORE_VERBOSITY) \
-o $@

lexicon-tags.txt: lexicon-sigma.txt
.generated/lexicon-tags.txt: .generated/lexicon-sigma.txt
$(AM_V_GEN)grep '<.*>' $< > $@

# To produce init uppercase tags, use this (the \u is the crucial part):
# | perl -pe 's/^(.)/+\u$$1/'
# But by leaving that out, the tags are actually directly compatible with the
# CG disamb file, which is a huge boon, so we stick with that for now:
lexicon-tags.relabel: lexicon-tags.txt
.generated/lexicon-tags.relabel: .generated/lexicon-tags.txt
$(AM_V_GEN)sed -e 's/<//' -e 's/>//' $< \
| perl -pe 's/^(.)/+$$1/' \
| paste $< - > $@
Expand All @@ -138,7 +139,7 @@ lexicon-tags.relabel: lexicon-tags.txt
# > $@

# Relabel analyser tags from Apertium style to GiellaLT style:
lexicon.hfst: lexicon.tmp.hfst lexicon-tags.relabel
lexicon.hfst: .generated/lexicon.tmp.hfst .generated/lexicon-tags.relabel
$(AM_V_HSUBST)$(HFST_SUBSTITUTE) $(MORE_VERBOSITY) $(HFSTFLAGS) \
-i $< --from-file=lexicon-tags.relabel -o $@

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 9aa1fc9

Please sign in to comment.