Files
gf-core/lib/src/Makefile

116 lines
2.5 KiB
Makefile

RUNGHC=runghc
RUNMAKE=$(RUNGHC) Make.hs
GF_LIB_PATH=..
.PHONY: all present alltenses full lang api math prelude test demo parse synopsis link compiled constructX clean
all: link prelude constructX present alltenses
#full
present:
$(RUNMAKE) present lang
$(RUNMAKE) present api
$(RUNMAKE) present symbolic
alltenses:
$(RUNMAKE) alltenses lang
$(RUNMAKE) alltenses api
$(RUNMAKE) alltenses symbolic
full:
$(RUNMAKE) lang
lang:
$(RUNMAKE) alltenses lang
api:
$(RUNMAKE) alltenses api
dict: DictBul DictEng DictFin DictFre DictRus DictGer DictSwe
DictBul:
gf -batch bulgarian/DictBul.gf +RTS -K100M
cp -p bulgarian/DictBul*.gfo ../alltenses
DictEng:
gf -batch english/DictEng.gf +RTS -K100M
cp -p english/DictEng*.gfo ../alltenses
DictFin:
gf -batch finnish/DictFin.gf +RTS -K100M
cp -p finnish/DictFin*.gfo ../alltenses
DictFre:
gf -batch french/DictFre.gf +RTS -K100M
cp -p french/DictFre*.gfo ../alltenses
DictGer:
gf -batch german/DictGer.gf +RTS -K100M
cp -p german/DictGer*.gfo ../alltenses
DictRus:
gf -batch russian/DictRus.gf +RTS -K100M
cp -p russian/DictRus*.gfo ../alltenses
DictSwe:
gf -batch swedish/DictSwe.gf +RTS -K100M
cp -p swedish/DictSwe*.gfo ../alltenses
# thai with pronunciation
thp:
cd thai ; runghc ThaiScript.hs ; cd ..
prelude:
gf -batch -path=prelude prelude/*.gf
cp -p prelude/*.gfo ../prelude
constructX:
gf -batch common/ConstructX.gf
cp -p common/ConstructX.gfo ../prelude
MakeStructural:
gf -batch */MakeStructural*.gf
cp -p */MakeStructural*.gfo ../present
cp -p */MakeStructural*.gfo ../alltenses
# the rest is mostly obsolete 24/8/2012
compatibility:
$(RUNMAKE) present compat
test:
$(RUNMAKE) test
demo:
gf -make -name=Demo0 demo/DemoBul.gf demo/DemoCat.gf +RTS -K48M
gf -make -name=Demo1 demo/DemoDan.gf demo/DemoDut.gf demo/DemoEng.gf
gf -make -name=Demo2 demo/DemoFin.gf +RTS -K48M
gf -make -name=Demo3 demo/DemoFre.gf demo/DemoGer.gf demo/DemoIta.gf demo/DemoNor.gf demo/DemoPol.gf +RTS -K48M
gf -make -name=Demo4 demo/DemoRon.gf +RTS -K48M
gf -make -name=Demo5 demo/DemoRus.gf demo/DemoSpa.gf demo/DemoSwe.gf
gf -make -name=Demo6 demo/DemoUrd.gf +RTS -K48M
gf -make Demo0.pgf Demo1.pgf Demo2.pgf Demo3.pgf Demo4.pgf Demo5.pgf Demo6.pgf
rm Demo?.pgf
demoex:
echo "gr -number=100 -cat=S | l -treebank | ps -to_html | wf -file=resdemo.html" | gf Demo.pgf
parse:
$(RUNMAKE) parse
synopsis:
cd ../doc ; $(RUNGHC) MkSynopsis ; cd ../src
link:
chmod a+x mkPresent mkMinimal
compiled:
(cd .. && tar -zcf resource-compiled.tar.gz prelude alltenses present)
clean:
$(RUNMAKE) clean