summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile16
1 files changed, 11 insertions, 5 deletions
diff --git a/makefile b/makefile
index 66a2928..43c7a44 100644
--- a/makefile
+++ b/makefile
@@ -1,5 +1,6 @@
OUTPUTDIR = bin
+SOURCEDIR = src
EXECUTABLES = ${OUTPUTDIR}/test \
${OUTPUTDIR}/fractran \
@@ -24,16 +25,21 @@ distclean:
testprog:
- ghc ${SWITCHES} --make test.hs -o ${OUTPUTDIR}/test
+ cd ${SOURCEDIR}; \
+ ghc ${SWITCHES} --make test.hs -o ../${OUTPUTDIR}/test
fractranprog:
- ghc ${SWITCHES} --make fractran.hs -o ${OUTPUTDIR}/fractran
+ cd ${SOURCEDIR}; \
+ ghc ${SWITCHES} --make fractran.hs -o ../${OUTPUTDIR}/fractran
thueprog:
- ghc ${SWITCHES} --make thue.hs -o ${OUTPUTDIR}/thue
+ cd ${SOURCEDIR}; \
+ ghc ${SWITCHES} --make thue.hs -o ../${OUTPUTDIR}/thue
unlambdaprog:
- ghc ${SWITCHES} --make unlambda.hs -o ${OUTPUTDIR}/unlambda
+ cd ${SOURCEDIR}; \
+ ghc ${SWITCHES} --make unlambda.hs -o ../${OUTPUTDIR}/unlambda
brainfuckprog:
- ghc ${SWITCHES} --make brainfuck.hs -o ${OUTPUTDIR}/brainfuck
+ cd ${SOURCEDIR}; \
+ ghc ${SWITCHES} --make brainfuck.hs -o ../${OUTPUTDIR}/brainfuck