From 107cd29639a348397eef214bd7e8e6eaa0d9f701 Mon Sep 17 00:00:00 2001 From: PHO Date: Tue, 9 Mar 2010 15:22:11 +0900 Subject: [PATCH 1/1] `gmake run' actually compiles the resulting Foo.hs --- .gitignore | 4 +++- GNUmakefile | 7 ++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index e854484..1491d52 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ Setup *.hi *.o -dist \ No newline at end of file +dist + +_tmp diff --git a/GNUmakefile b/GNUmakefile index 749bae3..ee7fc8a 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -1,4 +1,9 @@ -RUN_COMMAND = ./dist/build/hxt-compile/hxt-compile +RUN_COMMAND = \ + rm -rf _tmp && \ + mkdir _tmp && \ + ./dist/build/hxt-compile/hxt-compile > _tmp/Foo.hs && \ + cd _tmp && \ + ghc --make -c Foo.hs -Wall CONFIGURE_ARGS = -O0 -- 2.40.0