MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / make_var

Function make_var

scripts/sanitizer-coverage-map.py:91–101  ·  view source on GitHub ↗

The fully expanded value of a Makefile.cbm variable (works with make 3.81: no --eval).

(name: str)

Source from the content-addressed store, hash-verified

89
90
91def make_var(name: str) -> list[str]:
92 """The fully expanded value of a Makefile.cbm variable (works with make 3.81: no --eval)."""
93 with tempfile.NamedTemporaryFile("w", suffix=".mk", delete=False) as mk:
94 mk.write("print-cbm-var-%:\n\t@echo $($*)\n")
95 helper = mk.name
96 try:
97 res = subprocess.run(["make", "-s", "-f", "Makefile.cbm", "-f", helper, f"print-cbm-var-{name}"],
98 cwd=ROOT, capture_output=True, text=True, check=False)
99 finally:
100 os.unlink(helper)
101 return res.stdout.split() if res.returncode == 0 else []
102
103
104def cmd_static(args) -> int:

Callers 1

cmd_staticFunction · 0.85

Calls 2

writeMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected