`gmake run' actually compiles the resulting Foo.hs
authorPHO <pho@cielonegro.org>
Tue, 9 Mar 2010 06:22:11 +0000 (15:22 +0900)
committerPHO <pho@cielonegro.org>
Tue, 9 Mar 2010 06:22:11 +0000 (15:22 +0900)
.gitignore
GNUmakefile

index e85448430acaff5d425bae52110be3f263f9dd1d..1491d5244b101c90a441f3b2d28248781068fee6 100644 (file)
@@ -1,4 +1,6 @@
 Setup
 *.hi
 *.o
-dist
\ No newline at end of file
+dist
+
+_tmp
index 749bae3ee27da83a1aedbc6594deefb1c25d11aa..ee7fc8a3cf19788a6ca208cad43ee49a97f3b58b 100644 (file)
@@ -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