bugmake - Bugs: bug #32473, ./ is searched first for included...

 
 

bug #32473: ./ is searched first for included makefiles no matter which --include-dir is set

Submitted by:  None
Submitted on:  Mon 14 Feb 2011 10:11:05 AM UTC  
 
Severity: 3 - NormalItem Group: Bug
Status: Not A BugPrivacy: Public
Assigned to: NoneOpen/Closed: Closed
Component Version: 3.80Operating 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.

 

Mon 14 Feb 2011 06:28:24 PM UTC, comment #1:

This works as documented; from the GNU make manual:

It may have not been the best idea to always search the current directory first but it's far too late to change this behavior now.

There is no way to avoid the local directory being searched first (other than giving the full path).

Paul D. Smith <psmith>
Project Administrator
Mon 14 Feb 2011 10:11:05 AM UTC, original submission:

When starting make with "-I ../dir1/ -I ../dir2/ -I ./" makefiles are included from ./ if they exist. I would expect that ../dir1/ is searched first, then ../dir2 then ./ but makefiles are always taken from ./

If its designed this way, how to prevent ./ from being searched first?

Anonymous

 

(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)
  •  

    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
    Mon 14 Feb 2011 06:28:24 PM UTCpsmithStatusNone=>Not A Bug
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1