summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2014-02-18 01:10:00 +1100
committerJed Barber <jjbarber@y7mail.com>2014-02-18 01:10:00 +1100
commit50958fc5f2aad6f72fa8b948f8fa33713beb91a1 (patch)
tree9aefe125d84694f5c5a4614b39a1f3a90d2e3c3d /makefile
parentab757822c75aa71bd725126d9511fcb678f6e5e3 (diff)
Added basic command line programs to invoke Fractran and Thue interpreters
Diffstat (limited to 'makefile')
-rw-r--r--makefile19
1 files changed, 14 insertions, 5 deletions
diff --git a/makefile b/makefile
index d5a3939..961af1a 100644
--- a/makefile
+++ b/makefile
@@ -1,10 +1,12 @@
-OUTPUTDIR = ./bin
+OUTPUTDIR = bin
-EXECUTABLES = ${OUTPUTDIR}/test
+EXECUTABLES = ${OUTPUTDIR}/test ${OUTPUTDIR}/fractran ${OUTPUTDIR}/thue
-all: test
+
+all: testprog fractranprog thueprog
+
clean:
find . -name '*.hi' -delete
@@ -14,6 +16,13 @@ distclean:
rm ${EXECUTABLES}
-test:
- ghc --make ./test.hs -o ${OUTPUTDIR}/test
+
+testprog:
+ ghc --make test.hs -o ${OUTPUTDIR}/test
+
+fractranprog:
+ ghc -XDeriveDataTypeable --make fractran.hs -o ${OUTPUTDIR}/fractran
+
+thueprog:
+ ghc -XDeriveDataTypeable --make thue.hs -o ${OUTPUTDIR}/thue