[Top][All Lists]

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

[bug #19309] parallel make issue with archive members

From: Paul D. Smith
Subject: [bug #19309] parallel make issue with archive members
Date: Thu, 22 Mar 2007 01:49:02 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20060601 Firefox/ (Ubuntu-edgy)

Update of bug #19309 (project make):

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


Follow-up Comment #2:

This is not a bug, and is not related to parallel make; you're using VPATH
incorrectly.  Paul's Third Rule of Makefiles states that you should never use
VPATH to find TARGETS.  VPATH is only usable to find SOURCES.

Read my discussion of VPATH here to learn why your example works the way it


You're also violating Paul's Second Rule of Makefiles, in this rule:

  .cc.o :
        $(CXX) $(CXX_FLAGS) $(INCLUDES) -c -o $(DEST)/$@ $<

ANY time you see a rule where it's constructing a target that is not EXACTLY
"$@", you know the rule is incorrect.  Here you're building "$(DEST)/$@", not
"$@", so your rule is incorrect.

If you rework your example to use VPATH, etc. properly and still see
problems, please file a note with this bug and we can re-open it.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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