[Top][All Lists]

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

[bug #36881] Sample code for $(eval) is incorrect and fails.

From: John Joganic
Subject: [bug #36881] Sample code for $(eval) is incorrect and fails.
Date: Thu, 19 Jul 2012 00:38:41 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.57 Safari/536.11


                 Summary: Sample code for $(eval) is incorrect and fails.
                 Project: make
            Submitted by: jjoganic
            Submitted on: Thu 19 Jul 2012 12:38:40 AM GMT
                Severity: 3 - Normal
              Item Group: Documentation
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: 3.81
        Operating System: None
           Fixed Release: None
           Triage Status: None



The sample code reads:

define PROGRAM_template =
  $(1): $$($(1)_OBJS) $$($(1)_LIBS:%=-l%)
  ALL_OBJS   += $$($(1)_OBJS)

 $(foreach prog,$(PROGRAMS),$(eval $(call PROGRAM_template,$(prog))))

However, the '=' following PROGRAM_template causes the definition to have no

In short, any one using this code as an example to create templates will find
that no parameterized rules are actually generated.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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