External Core tools: track new syntax for newtypes
[ghc-hetmet.git] / utils / ext-core / Makefile
index 7015105..ec228e7 100644 (file)
@@ -1,6 +1,9 @@
-all:   Check.hs Core.hs Driver.hs Env.hs Interp.hs ParsecParser.hs ParseGlue.hs Prep.hs PrimCoercions.hs Prims.hs Printer.hs
+all:   extcorelibs Check.hs Core.hs Driver.hs Env.hs Interp.hs ParsecParser.hs ParseGlue.hs Prep.hs PrimCoercions.hs Prims.hs Printer.hs
        ghc -O2 --make -fglasgow-exts -o Driver Driver.hs
 
+extcorelibs:
+       $(MAKE) -C lib/GHC_ExtCore
+
 # Run this when the primops.txt file changes
 prims:  ../../compiler/prelude/primops.txt
        ../genprimopcode/genprimopcode --make-ext-core-source < ../../compiler/prelude/primops.txt > PrimEnv.hs
@@ -10,7 +13,7 @@ prims:  ../../compiler/prelude/primops.txt
 
 # The following assumes that you've built all the GHC libs with -fext-core...
 libtest: all
-       ./Driver `find ../../libraries -print | grep .hcr$$ | grep -v bootstrapping`
+       ./Driver -n `find ../../libraries -print | grep .hcr$$ | grep -v bootstrapping`
 
 # ...or built all the nofib programs with -fext-core.
 nofibtest: all