]> git.ipfire.org Git - thirdparty/make.git/commit
[SV 60412] Allow -I- to throw out the current directory path
authorPaul Smith <psmith@gnu.org>
Sun, 30 May 2021 22:47:50 +0000 (18:47 -0400)
committerPaul Smith <psmith@gnu.org>
Fri, 3 Sep 2021 16:08:11 +0000 (12:08 -0400)
commitb9c4fc441b2d66312a592bf4eab67ef7fbe4c645
tree51d517f6cb9b6398eed3abdc53259cddce51b786
parent65b73ce4342cdfa2486be406e9df5f9effb7fd7c
[SV 60412] Allow -I- to throw out the current directory path

Accept a "-" directory value to the -I option to clear the set of
directories to be searched up to that point, including the default
directories.

* NEWS: Announce the change.
* doc/make.texi (Summary of Options): Add documentation.
* src/read.c (construct_include_path): Check for '-' and if found,
clear the list of directories to be searched.
* tests/scripts/options/dash-I: Add tests for -I-.
* tests/scripts/variables/INCLUDE_DIRS: Add tests for -I-.
NEWS
doc/make.texi
src/read.c
tests/scripts/options/dash-I
tests/scripts/variables/INCLUDE_DIRS