- i_copy = i { prefixDirTemplate = toPathTemplate pref,
- dataDirTemplate = toPathTemplate idatadir,
- docDirTemplate = toPathTemplate idocdir,
- htmlDirTemplate = toPathTemplate ihtmldir
+ toPathTemplate' = toPathTemplate . replaceTopdir topdir
+ i_copy = i { prefixDirTemplate = toPathTemplate' iprefix,
+ binDirTemplate = toPathTemplate' ibindir,
+ libDirTemplate = toPathTemplate' ilibdir,
+ libexecDirTemplate = toPathTemplate' ilibexecdir,
+ dataDirTemplate = toPathTemplate' idatadir,
+ docDirTemplate = toPathTemplate' idocdir,
+ htmlDirTemplate = toPathTemplate' ihtmldir,
+ interfaceDirTemplate = toPathTemplate' iinterfacedir