Bug 1412460 - Don't write make variables in configure.d; r?build
So the file can be more easily consumed without this variable defined.
MozReview-Commit-ID: DF3ASwx4SZP
--- a/configure.py
+++ b/configure.py
@@ -92,17 +92,17 @@ def config_status(config):
partial_config = PartialConfigEnvironment(config['TOPOBJDIR'])
partial_config.write_vars(sanitized_config)
# Write out a depfile so Make knows to re-run configure when relevant Python
# changes.
mk = Makefile()
rule = mk.create_rule()
- rule.add_targets(["$(OBJDIR)/config.status"])
+ rule.add_targets(["%s/config.status" % config['TOPOBJDIR']])
rule.add_dependencies(itertools.chain(config['ALL_CONFIGURE_PATHS'],
iter_modules_in_path(config['TOPOBJDIR'],
config['TOPSRCDIR'])))
with open('configure.d', 'w') as fh:
mk.dump(fh)
# Other things than us are going to run this file, so we need to give it
# executable permissions.