summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2014-04-10 05:25:03 +1000
committerJed Barber <jjbarber@y7mail.com>2014-04-10 05:25:03 +1000
commit281425310c5db21f87981eeb9601a71d1974d98d (patch)
treebef4643d906c93622c311fef2cf758fe94f1f651 /makefile
parente8695600977769008f285f9958eb043cca1b9b29 (diff)
Rearranging files
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