diff options
Diffstat (limited to 'examples/tutorial/embedded/Makefile')
| -rw-r--r-- | examples/tutorial/embedded/Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/examples/tutorial/embedded/Makefile b/examples/tutorial/embedded/Makefile new file mode 100644 index 000000000..203795b6a --- /dev/null +++ b/examples/tutorial/embedded/Makefile @@ -0,0 +1,18 @@ +all: gf hs run + +gf: + echo "pm | wf math.gfcm" | gf MathEng.gf MathFre.gf + +hs: gf + echo "pg -printer=haskell | wf haskell/GSyntax.hs" | gf math.gfcm + +run: hs + ghc --make -o ./math -ihaskell haskell/Run.hs + strip math + +clean: + rm -f *.gfc *.gfr haskell/*.o haskell/*.hi + +distclean: + rm -f GSyntax.hs math math.gfcm *.gfc *.gfr haskell/*.o haskell/*.hi + |
