[Top][All Lists]

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

[bug #47880] Allow updates to .INCLUDE_DIRS to change search path

From: Steven Simpson
Subject: [bug #47880] Allow updates to .INCLUDE_DIRS to change search path
Date: Fri, 7 May 2021 09:14:50 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:88.0) Gecko/20100101 Firefox/88.0

Follow-up Comment #14, bug #47880 (project make):

> when a user writes a makefile he should not have to know that
> depfiles:=$(obj:.o=.d)
> include $(depfiles)
> is less efficient than
> depfiles:=$(obj:.o=.d)
> depfiles:=$(addprefix $(CURDIR)/,$(depfiles))
> include $(depfiles)

Perhaps he should, specifically since the issue has been raised.

(Incidentally, $(abspath) achieves largely the same thing as prefixing

Anyway, the various suggestions are not mutually exclusive:

* Add -I- to allow the invoker to reset the search path.  (This is what I
meant by a "switch analogous to -r/-R", in case I wasn't clear.)
* Add includelocal to allow an author to indicate when he definitely doesn't
want to use the search path for specific files.  (He could use abspath/CURDIR,
but if the included files are also targets, those rules have to be changed
* Allow effective modifications to .INCLUDE_DIRS.


Reply to this item at:


  Message sent via Savannah

reply via email to

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