all: gf hs run

gf:
	echo "pm -printer=gfcc | wf math.gfcc" | gf MathEng.gf MathFre.gf

hs: gf
	echo "pg -printer=gfcc_haskell | wf GSyntax.hs" | gf MathEng.gf MathFre.gf

run: hs
	ghc --make -o ./mathc TransferLoopGFCC.hs
	strip mathc

clean: 
	rm -f *.gfc *.gfr *.o *.hi

distclean:
	rm -f GSyntax.hs math math.gfcc *.gfc *.gfr *.o *.hi

