@@ -27,10 +27,11 @@ postInstLib args flags desc local
2727 let dirs = substituteInstallDirTemplates cenv dirs_pkg
2828 let datad = datadir dirs
2929 let datasubd = datasubdir dirs
30+ let bind = fromPathTemplate (bindir dirs)
3031 let idir = fromPathTemplate (datadir dirs) ++ "/" ++
3132 fromPathTemplate (datasubdir dirs)
3233 putStrLn $ "Installing libraries in " ++ idir
33− system' $ "make -C lib install TARGET=" ++ idir
34+ system' $ "make -C lib install TARGET=" ++ idir ++ " BINDIR=" ++ bind
3435
3536main = defaultMainWithHooks (simpleUserHooks { postInst = postInstLib,
3637 postClean = postCleanLib })