bool is_installable() const { return !install_location.empty(); }
const Msp::FS::Path &get_install_location() const { return install_location; }
- /**
- Changes the mtime of the target to the current time.
- */
+ /// Changes the mtime of the target to the current time.
void touch();
protected:
const PackageMap &get_packages() const { return packages; }
- /** Locates a package and creates it if necessary. */
+ /** Locates a package and loads it if necessary. */
Package *find_package(const std::string &);
private:
std::string run_pkgconfig(const std::string &, const std::string &);
/** Determines the source directory of a package. Pkg-config is consulted
- first, and if it fails, the package path is searched for matches. */
+ first, and if it fails, the package path is searched for matches. The
+ package is expected to be located in a directory named after itself. */
Msp::FS::Path get_package_location(const std::string &);
/** Determines the file containing a binary package. The file is expected
/// Creates a source file appropriate for this tool.
virtual Target *create_source(const Component &, const Msp::FS::Path &) const { return 0; }
- /** Creates a package-less source file appropriate for this too. This is
+ /** Creates a package-less source file appropriate for this tool. This is
called during dependency discovery when no package has created a target for
the file. */
virtual Target *create_source(const Msp::FS::Path &) const { return 0; }