@@ -25,13 +25,16 @@ postInstLib args flags desc local
2525 let cenv = compilerTemplateEnv (compilerId (compiler local))
2626 let dirs_pkg = substituteInstallDirTemplates penv (installDirTemplates local)
2727 let dirs = substituteInstallDirTemplates cenv dirs_pkg
28− let datad = datadir dirs
29− let datasubd = datasubdir dirs
3028 let bind = fromPathTemplate (bindir dirs)
29+ let progPart t = L.substPathTemplate (packageId desc) local (t local)
30+ let progpfx = progPart progPrefix
31+ let progsfx = progPart progSuffix
32+ let PackageName pkgname = (packageName desc)
33+ let icmd = bind ++ "/" ++ progpfx ++ pkgname ++ progsfx
3134 let idir = fromPathTemplate (datadir dirs) ++ "/" ++
3235 fromPathTemplate (datasubdir dirs)
3336 putStrLn $ "Installing libraries in " ++ idir
34− system' $ "make -C lib install TARGET=" ++ idir ++ " BINDIR=" ++ bind
37+ system' $ "make -C lib install TARGET=" ++ idir ++ " IDRIS=" ++ icmd
3538
3639main = defaultMainWithHooks (simpleUserHooks { postInst = postInstLib,
3740 postClean = postCleanLib })