Use the " | $$(dir $$@)" in ghc.mk