Next: , Previous: mallex, Up: The Programs


3.5 The Program malmake

The program malmake reads a project file, checks if all grammar files needed do exist, and translates all grammar files that have not yet been translated or whose source files have changed since they have been translated. malmake itself calls the programs malsym, mallex and malrul if needed. An example: assume you have written a morphology grammar whose grammar files are bundled in a project file english.pro:

     sym: rules/english.sym
     all: rules/english.all
     lex: rules/english.lex lex/adjectives.lex
     lex: lex/particles.lex lex/suffixes.lex lex/verbs.lex
     lex: lex/nouns.lex lex/abbreviations.lex lex/numbers.lex
     mor: rules/english.mor
     mallex: set hidden +semantics +syntax
     malaga: set hidden +semantics

When executing malmake dmm.pro for the first time, the symbol file, the rule files and the lexicon file will be translated:

     $ malmake dmm.pro
     compiling "dmm.sym"
     compiling "dmm.all"
     compiling "dmm.mor"
     compiling "dmm.lex"
     project is up to date
     $

If you want all files to be recompiled on all accounts, use the option -new or -n.

The translation of a big lexicon can take some minutes, since the allomorph rules have to be executed for each lexicon entry.