summaryrefslogtreecommitdiff
path: root/examples/tutorial/embedded/Makefile
diff options
context:
space:
mode:
authoraarne <aarne@cs.chalmers.se>2007-09-05 14:05:42 +0000
committeraarne <aarne@cs.chalmers.se>2007-09-05 14:05:42 +0000
commitd2a5148708a3f270b058403e573106ed1d309957 (patch)
treed1676e0578644e96ba644250c5190f5e294bac06 /examples/tutorial/embedded/Makefile
parente2b9657f79d913dddb064037e79a9dd1a63bdbf9 (diff)
modernized parser in EmbedAPI
Diffstat (limited to 'examples/tutorial/embedded/Makefile')
-rw-r--r--examples/tutorial/embedded/Makefile18
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
+