URL: <http://savannah.gnu.org/bugs/?44942>
Summary: OR-ing recipes to allow alternative requsites Project: make Submitted by: carlponder Submitted on: Mon 27 Apr 2015 04:51:46 PM GMT Severity: 3 - Normal Item Group: Enhancement Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Component Version: None Operating System: None Fixed Release: None Triage Status: None _______________________________________________________ Details: I'd like to be able to write some rules like this: file : %.tar tar -xvf $< file : %.tgz tar -xzvf $< file : %.tar.bzip2 tar -xjvf $< etc., where the rules would be tested in sequence until one is found with satisfiable pre-requisites. In this case it would look for any of the listed tar-files and then apply the unpacking rule. I know that there are ways around this, but the procedural solution of adding conditional statements into the recipe body looks like a hack compared with this. Have you guys considered these kinds of OR-recipes for other reasons? _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?44942> _______________________________________________ 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