forked from GitHub/gf-rgl
2.1 KiB
2.1 KiB
GF's Resource Grammar Library (RGL)
The contents of this repository have been split from the original monolithic GF repository here: https://github.com/GrammaticalFramework/GF/tree/master/lib
Requirements
In order to build the RGL, you will need:
- GF installed on your system
- Haskell
A method for building the RGL without Haskell is in the works.
Basic usage
If you have make, you can compile the RGL and install it to the default location (see note below) with:
make install
This is the same as make build followed by make copy.
There is also make clean available.
Install location
The install script will try to determine where to copy the compiled RGL modules. It will look for, in this order:
- the
--dest=flag (see below) - the
GF_LIB_PATHenvironment variable - the file
../gf-core/GF_LIB_PATH(relative to this directory). This only works if you have thegf-coreandgf-rglrepositories in the same top-level directory and you have already compiled GF from source. (This is considered messy and will probably disappead in the future)
Advanced
For more fine-grained control over the build process, you can run the build script directly:
runghc Make.hs ...
Where ... is one of:
build [CMD] [MODE] [--langs=[+|-]LANG,LANG,...] [--gf=...]
copy [--dest=...]
install [CMD] [MODE] [--langs=[+|-]LANG,LANG,...] [--gf=...] [--dest=...]
clean
CMDis one of:prelude,all,lang,api,compat,pgf,parse(default isall)MODEis one of:present,alltenses(default is both)- You can override the default language list with
--langs=... - You can add languages to the default list with
--langs=+... - You can remove languages from the default list with
langs=-... LANGis a 3-letter language code, e.g.Eng,Sweetc.- The path to GF installed on your system can be specified via the
gfflag (default is that thegfexecutable is in the global system path). - The
toflag can be used to manually specify where the compiled RGL modules should be copied/installed. This is the same place asGF_LIB_PATH.