URL: <http://savannah.gnu.org/bugs/?51269>
Summary: Reusing data from targets for prerequisites Project: make Submitted by: elfring Submitted on: Mon 19 Jun 2017 07:34:22 PM CEST Severity: 3 - Normal Item Group: Enhancement Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Component Version: 4.2.1 Operating System: Any Fixed Release: None Triage Status: None _______________________________________________________ Details: The make software supports pattern rules <https://www.gnu.org/software/make/manual/html_node/Pattern-Match.html> for a while. The percent character must be specified for prerequisites and targets there which is mapped to a stem then. Multiple targets <https://www.gnu.org/software/make/manual/html_node/Multiple-Targets.html> can also be used for a specific make rule. Automatic variables <https://www.gnu.org/software/make/manual/html_node/Automatic-Variables.html> provide corresponding data. The documentation contains the following information: “… It’s very important that you recognize the limited scope in which automatic variable values are available: they only have values within the recipe. …” How are the chances to adjust this software restriction? I would appreciate if parts from target names can also be occasionally reused for prerequisite specifications. Would it make sense to allow that another special syntax will denote additional placeholders (similar to the handling of the percent character)? _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?51269> _______________________________________________ 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