Use the " | $$(dir $$@)" in ghc.mk
authorIan Lynagh <igloo@earth.li>
Sat, 3 Oct 2009 21:55:51 +0000 (21:55 +0000)
committerIan Lynagh <igloo@earth.li>
Sat, 3 Oct 2009 21:55:51 +0000 (21:55 +0000)
ghc.mk

diff --git a/ghc.mk b/ghc.mk
index 8af2458..1364df3 100644 (file)
--- a/ghc.mk
+++ b/ghc.mk
@@ -38,8 +38,7 @@ endif
 # dependency to ensure these libs are built before we invoke hsc2hs:
 $(HSC2HS_INPLACE) : $(OTHER_LIBS)
 
 # dependency to ensure these libs are built before we invoke hsc2hs:
 $(HSC2HS_INPLACE) : $(OTHER_LIBS)
 
-$(utils/hsc2hs_template) : utils/hsc2hs/template-hsc.h
-       "$(MKDIRHIER)" $(dir $@)
+$(utils/hsc2hs_template) : utils/hsc2hs/template-hsc.h | $$(dir $$@)
        "$(CP)" $< $@
 
 endif
        "$(CP)" $< $@
 
 endif