URL: <http://savannah.gnu.org/bugs/?47409>
Summary: API support for accessing build internals Project: make Submitted by: phantal Submitted on: Mon 14 Mar 2016 05:33:25 PM GMT Severity: 3 - Normal Item Group: Enhancement Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Component Version: 4.1 Operating System: None Fixed Release: None Triage Status: None _______________________________________________________ Details: Some things I'd like to see added (some of which I mentioned in another issue): read-only exports for select global variables (eg, current makefile name / current line number) A C function for checking whether a variable exists, possibly returning a struct describing it (export/override set?, flavor, origin, pointer-to-pointer for the variable in case they want to re-allocate it) C functions for doing introspection: * targets that depend on target X * targets needed by target X * look up target-specific variable values Make existing macro functions non-static and exported in gnumake.h: my_macro( /*...*/ ) { /* ... */ return gmk_strip( result ); } Add a way to make temporary variables like what $(foreach) does. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?47409> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make