-
-FS::Path InstalledFile::generate_target_path(const FS::Path &prefix, const FileTarget &tgt, const std::string &loc)
-{
- if(!tgt.is_installable() && loc.empty())
- throw invalid_argument(tgt.get_name()+" is not installable");
-
- string mid;
- if(!loc.empty())
- mid = loc;
- else
- mid = tgt.get_install_location();
-
- return prefix/mid/FS::basename(tgt.get_path());
-}