Difference between revisions of "Setting up a build environment for a language pair"
Jump to navigation
Jump to search
(Created page with ' ==Prerequisites== * All the language data files: ** Monolingual dictionaries ** Bilingual dictionary ** Transfer rule files ** modes file ==The general steps== You need…') |
m |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | |||
==Prerequisites== |
==Prerequisites== |
||
Line 23: | Line 22: | ||
Mandatory files for autotools: NEWS README ChangeLog AUTHORS COPYING |
Mandatory files for autotools: NEWS README ChangeLog AUTHORS COPYING |
||
+ | |||
+ | You can just <code>touch</code> these files, they may be empty. Or you can fill them in. |
||
+ | |||
+ | Once you've got the files you can do: |
||
+ | |||
+ | <pre> |
||
+ | $ aclocal |
||
+ | $ automake -a |
||
+ | $ autoconf |
||
+ | </pre> |
||
+ | |||
+ | This will give you a <code>configure</code> file, which you can run which will make your <code>Makefile</code> |
||
+ | |||
+ | |||
+ | [[Category:Documentation]] |
||
+ | [[Category:Documentation in English]] |
Latest revision as of 12:09, 26 September 2016
Prerequisites[edit]
- All the language data files:
- Monolingual dictionaries
- Bilingual dictionary
- Transfer rule files
- modes file
The general steps[edit]
You need a Makefile.am
which contains the build rules, and a configure.ac
which contains the dependencies.
The configure.ac
I would just take from an existing package. They're all pretty much the same.
The Makefile.am
really depends on your configuration. E.g.
- Bidirectional?
- Variants?
- 3-level or 1-level transfer?
Mandatory files for autotools: NEWS README ChangeLog AUTHORS COPYING
You can just touch
these files, they may be empty. Or you can fill them in.
Once you've got the files you can do:
$ aclocal $ automake -a $ autoconf
This will give you a configure
file, which you can run which will make your Makefile