Add a /. to the $$(dir $$@) to stop make normalising away the trailing /
authorIan Lynagh <igloo@earth.li>
Sun, 4 Oct 2009 19:13:26 +0000 (19:13 +0000)
committerIan Lynagh <igloo@earth.li>
Sun, 4 Oct 2009 19:13:26 +0000 (19:13 +0000)
ghc.mk

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