From: PHO Date: Tue, 9 Mar 2010 06:22:11 +0000 (+0900) Subject: `gmake run' actually compiles the resulting Foo.hs X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=107cd29639a348397eef214bd7e8e6eaa0d9f701;p=hxt-compile.git `gmake run' actually compiles the resulting Foo.hs --- 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