[project @ 2003-05-21 10:50:55 by reid]
[ghc-hetmet.git] / mk / suffix.mk
index 96834fc..02469fe 100644 (file)
 
 .DELETE_ON_ERROR:
 
-# However, if $(way) is set then we have to define $(way_) and $(_way)
-# from it in the obvious fashion.
-# This must be done here (or earlier), but not in target.mk with the other
-# way management, because the pattern rules in this file take a snapshot of
-# the value of $(way_) and $(_way), and it's no good setting them later!
-
-ifneq "$(way)" ""
-  way_ := $(way)_
-  _way := _$(way)
-endif
-
 #-----------------------------------------------------------------------------
 # Haskell Suffix Rules
 
@@ -145,7 +134,7 @@ endif
 
 .PRECIOUS: %.gc
 
-%.hs : %.gc
+%.hs %_stub_ffi.c %_stub_ffi.h : %.gc
        $(GREENCARD) $(GC_OPTS) $< -o $@
 
 %.lhs : %.gc