diff options
author | Paul Smith <psmith@gnu.org> | 2022-12-17 11:01:31 -0500 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2022-12-18 20:06:38 -0500 |
commit | 5d1b757517b5ef3db5b7150fbcf7a310a3c627ce (patch) | |
tree | 7fe42cbc146e8d55d09f19e4eb00e00772674d5a /tests | |
parent | c0023150f176a91526d88b45eb02334add9059e1 (diff) | |
download | make-git-5d1b757517b5ef3db5b7150fbcf7a310a3c627ce.tar.gz |
[SV 63516] [DOS] Support include files with drivespecs
* src/makeint.h (HAVE_DRIVESPEC): Create a macro to check.
* src/main.c (.FEATURES): Add "dospaths" as a feature.
* src/read.c (eval_makefile) [DOS]: If the included makefile name
starts with a drivespec, don't search the include directories.
* doc/make.texi (Include): Document this behavior.
* tests/scripts/features/include: Add a test.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/scripts/features/include | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/scripts/features/include b/tests/scripts/features/include index 69d67181..7f216434 100644 --- a/tests/scripts/features/include +++ b/tests/scripts/features/include @@ -1,4 +1,4 @@ -# -*-mode: perl; rm-trailing-spaces: nil-*- +# -*-mode: perl-*- $description = "Test various forms of the GNU make 'include' command."; @@ -462,4 +462,14 @@ run_make_with_options(undef, ['-E', '%:;@echo $@', '-E', 'all:;', '-E', '-includ $answer = "bizbaz\nbazbiz\nfoobar\nbarfoo\n$defaults\n#MAKE#: 'all' is up to date.\n"; &compare_output(subst_make_string($answer), &get_logfile(1)); +# SV 63516 +if (exists $FEATURES{'dospaths'}) { + run_make_test(q! +include C:__foobar +%bar: ; @echo $@ +all: ; +!, + '', "C:__foobar\n#MAKE#: 'all' is up to date."); +} + 1; |