bug-make
[Top][All Lists]
Advanced

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

[bug #47715] Implicit rule defined for multiple targets at once only run


From: Paul D. Smith
Subject: [bug #47715] Implicit rule defined for multiple targets at once only runs one time
Date: Sat, 16 Apr 2016 13:50:07 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0

Update of bug #47715 (project make):

                  Status:                    None => Not A Bug              
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #1:

This is the expected behavior.  See
http://www.gnu.org/software/make/manual/html_node/Pattern-Intro.html:

Pattern rules may have more than one target. Unlike normal rules, this does
not act as many different rules with the same prerequisites and recipe. If a
pattern rule has multiple targets, make knows that the rule’s recipe is
responsible for making all of the targets. The recipe is executed only once to
make all the targets.

If you want to run the recipe once for each target, you have to declare one
pattern rule per target.  You can put the recipe into a variable if you want
to reduce duplication.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?47715>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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