build-common

Shared build system code (usually as a git submodule)
Log | Files | Refs | README | LICENSE

commit 355a3172699b96f1040edcb577c07a681802b3ae
parent 281e3352e030d06943ea8615b78fa21ca63bc2bc
Author: Florian Dold <florian@dold.me>
Date:   Fri, 28 Oct 2022 14:45:29 +0200

-compat

Diffstat:
Mtalerbuildconfig.py | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/talerbuildconfig.py b/talerbuildconfig.py @@ -158,13 +158,14 @@ class BuildConfig: if self.configmk_enabled: if self.configmk_dotfile: - print("writing .config.mk") d = Path(".") + cf = d / ".config.mk" else: - print("writing config.mk") d = Path(os.environ.get("TALERBUILDSYSTEMDIR", ".")) + cf = d / "config.mk" d.mkdir(parents=True, exist_ok=True) - with open(d / ".config.mk", "w") as f: + print(f"writing {cf}") + with open(cf, "w") as f: f.write("# this makefile fragment is autogenerated by configure.py\n") if self.prefix_enabled: f.write(f"prefix = {args.prefix}\n")