tef-innu

Transducteur à états finis de l’innu
git clone git://git.asteride.xyz/tef-innu.git
Journaux | Fichiers | Références

Makefile (1701B)


      1 # =======================
      2 # FICHIER DE CONSTRUCTION
      3 # =======================
      4 
      5 # -----------------
      6 # RÈGLES DE SUFFIXE
      7 # -----------------
      8 
      9 .SUFFIXES: .att .def .ext .fst .lex .lexs .var .xfst
     10 
     11 .att.ext:
     12 	bin/extension "$<" | sort > "$@"
     13 .fst.att:
     14 	foma -e "load $<" -e "write att $@" -s
     15 .lex.lexs:
     16 	bin/lexalexs <"$<" >"$@"
     17 .var.def:
     18 	foma -e "source $<" -e "save defined $@" -s
     19 .xfst.fst:
     20 	foma -e "source $<" -e "save stack $@" -s
     21 
     22 # ------
     23 # DÉFAUT
     24 # ------
     25 
     26 default: mots
     27 
     28 # ------
     29 # VERBES
     30 # ------
     31 
     32 tf/verbes/lexical.fst: tf/orthographe.def tf/traits.def tf/verbes/lexique.lexs
     33 tf/verbes/profond.fst: tf/traits.def tf/verbes/lexical.fst
     34 tf/verbes/positionnel.fst: tf/orthographe.def tf/traits.def tf/morphemes.def \
     35 		tf/verbes/profond.fst
     36 tf/verbes/morphologique.fst: tf/orthographe.def tf/traits.def tf/morphemes.def \
     37 		tf/verbes/positionnel.fst
     38 tf/verbes/morphemique.fst: tf/traits.def tf/morphemes.def \
     39 		tf/verbes/morphologique.fst
     40 tf/verbes/morphique.fst: tf/orthographe.def tf/traits.def tf/morphemes.def \
     41 		tf/verbes/morphemique.fst
     42 
     43 # ----
     44 # MOTS
     45 # ----
     46 
     47 mots: tf/mots_mrphm_prod.fst tf/mots_prod.fst tf/mots_mrphm.fst tf/mots.fst
     48 
     49 tf/surface.fst: tf/orthographe.def tf/verbes/morphique.fst
     50 tf/mots_mrphm_prod.fst: tf/traits.def tf/morphemes.def tf/surface.fst
     51 tf/mots_prod.fst: tf/morphemes.def tf/mots_mrphm_prod.fst
     52 tf/mots_mrphm.fst: tf/mots_mrphm_prod.fst
     53 tf/mots.fst: tf/mots_prod.fst
     54 
     55 # -----
     56 # TESTS
     57 # -----
     58 
     59 tester: mots tf/mots.ext
     60 	bin/rapport tf/mots.ext ech.tsv | less
     61 
     62 # ---------
     63 # NETTOYAGE
     64 # ---------
     65 
     66 net:
     67 	find . \
     68 		-name '*.fst'  -o \
     69 		-name '*.def'  -o \
     70 		-name '*.att'  -o \
     71 		-name '*.ext'  -o \
     72 		-name '*.lexs' -o \
     73 		-name '*.tgz'  -o | xargs rm -rf