bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #44942] OR-ing recipes to allow alternative requsites


From: Carl Ponder
Subject: [bug #44942] OR-ing recipes to allow alternative requsites
Date: Mon, 27 Apr 2015 16:51:48 +0000
User-agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36

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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]