bugmake - Bugs: bug #39308, .SECONDEXPANSION

 
 

bug #39308: .SECONDEXPANSION

Submitted by:  praveen <praveenb>
Submitted on:  Fri 21 Jun 2013 04:01:44 AM UTC  
 
Severity: 3 - NormalItem Group: None
Status: Not A BugPrivacy: Public
Assigned to: NoneOpen/Closed: Closed
Component Version: 3.81Operating System: POSIX-Based
Fixed Release: NoneTriage Status: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 21 Jun 2013 04:10:52 AM UTC, comment #1:

The mailing lists are much better places to ask for help than the bug tracker.

GNU make, like all versions of make, will only build the first target in the makefile by default. Here the first target is "main", so that's what make builds.

If you want it to build both "main" and "lib" you'll have to either list them on the command line ("make main lib") or else add a target before the other targets that depends on them: the traditional target name for this is "all" but you can use whatever you like:

Paul D. Smith <psmith>
Project Administrator
Fri 21 Jun 2013 04:01:44 AM UTC, original submission:

i am trying examples on given 3.81 document but what i go through the theory the answer is different please help me

in the .SECONDEXPANSION example the main_OBJS are printing but
lib_OBJS are not printing why

main_OBJS := main.c try.c test.c
lib_OBJS := lib.c api.c

.SECONDEXPANSION:
main lib : $$(patsubst %.c,%.o,$$($$@_OBJS))
@echo $($@_OBJS)

praveen <praveenb>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by psmith (Posted a comment)
  • -unavailable- added by praveenb (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 21 Jun 2013 04:10:52 AM UTCpsmithStatusNone=>Not A Bug
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1