bug-make
[Top][All Lists]
Advanced

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

[bug #32473] ./ is searched first for included makefiles no matter which


From: Paul D. Smith
Subject: [bug #32473] ./ is searched first for included makefiles no matter which --include-dir is set
Date: Mon, 14 Feb 2011 18:28:25 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.10 (maverick) Firefox/3.6.13

Update of bug #32473 (project make):

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

    _______________________________________________________

Follow-up Comment #1:

This works as documented; from the GNU make manual:


   If the specified name does not start with a slash, and the file is
not found in the current directory, several other directories are
searched.  First, any directories you have specified with the `-I' or
`--include-dir' option are searched (*note Summary of Options: Options
Summary.).  Then the following directories (if they exist) are
searched, in this order: `PREFIX/include' (normally `/usr/local/include'
(1)) `/usr/gnu/include', `/usr/local/include', `/usr/include'.


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).

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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