aboutsummaryrefslogtreecommitdiff
path: root/build/install/module.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build/install/module.cxx')
-rw-r--r--build/install/module.cxx16
1 files changed, 3 insertions, 13 deletions
diff --git a/build/install/module.cxx b/build/install/module.cxx
index 610154a..5bf2876 100644
--- a/build/install/module.cxx
+++ b/build/install/module.cxx
@@ -63,7 +63,7 @@ namespace build
if (spec)
{
- if (cv != nullptr && *cv && !cv->empty ())
+ if (*cv && !cv->empty ())
v = *cv;
}
else
@@ -116,19 +116,9 @@ namespace build
//
r.operations.insert (install_id, install);
- // Register rules.
+ // Register our file installer rule.
//
- {
- auto& rs (b.rules);
-
- // Register the standard alias rule for the install operation.
- //
- rs.insert<alias> (install_id, "alias", alias_rule::instance);
-
- // Register our file installer rule.
- //
- rs.insert<file> (install_id, "install", rule_);
- }
+ b.rules.insert<file> (perform_id, install_id, "install", rule_);
// Enter module variables.
//