mirror of
https://git.savannah.gnu.org/git/make.git
synced 2025-01-31 11:27:40 +00:00
variable.c (define_automatic_variables) [__MSDOS__ || WINDOWS32]:
Remove trailing backslashes in $(@D), $(<D), etc., for consistency with forward slashes. Fixes Savannah bug #30795.
This commit is contained in:
parent
5acda13ace
commit
c3188c6f31
2 changed files with 23 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2010-08-27 Eli Zaretskii <eliz@gnu.org>
|
||||
|
||||
* variable.c (define_automatic_variables) [__MSDOS__ || WINDOWS32]:
|
||||
Remove trailing backslashes in $(@D), $(<D), etc., for consistency
|
||||
with forward slashes. Fixes Savannah bug #30795.
|
||||
|
||||
2010-08-13 Paul Smith <psmith@gnu.org>
|
||||
|
||||
* NEWS: Accidentally forgot to back out the sorted wildcard
|
||||
|
|
18
variable.c
18
variable.c
|
@ -917,7 +917,23 @@ define_automatic_variables (void)
|
|||
define_variable_cname ("?D", "$(dir $?)", o_automatic, 1);
|
||||
define_variable_cname ("^D", "$(dir $^)", o_automatic, 1);
|
||||
define_variable_cname ("+D", "$(dir $+)", o_automatic, 1);
|
||||
#else
|
||||
#elif defined(__MSDOS__) || defined(WINDOWS32)
|
||||
/* For consistency, remove the trailing backslash as well as slash. */
|
||||
define_variable_cname ("@D", "$(patsubst %/,%,$(patsubst %\\,%,$(dir $@)))",
|
||||
o_automatic, 1);
|
||||
define_variable_cname ("%D", "$(patsubst %/,%,$(patsubst %\\,%,$(dir $%)))",
|
||||
o_automatic, 1);
|
||||
define_variable_cname ("*D", "$(patsubst %/,%,$(patsubst %\\,%,$(dir $*)))",
|
||||
o_automatic, 1);
|
||||
define_variable_cname ("<D", "$(patsubst %/,%,$(patsubst %\\,%,$(dir $<)))",
|
||||
o_automatic, 1);
|
||||
define_variable_cname ("?D", "$(patsubst %/,%,$(patsubst %\\,%,$(dir $?)))",
|
||||
o_automatic, 1);
|
||||
define_variable_cname ("^D", "$(patsubst %/,%,$(patsubst %\\,%,$(dir $^)))",
|
||||
o_automatic, 1);
|
||||
define_variable_cname ("+D", "$(patsubst %/,%,$(patsubst %\\,%,$(dir $+)))",
|
||||
o_automatic, 1);
|
||||
#else /* not __MSDOS__, not WINDOWS32 */
|
||||
define_variable_cname ("@D", "$(patsubst %/,%,$(dir $@))", o_automatic, 1);
|
||||
define_variable_cname ("%D", "$(patsubst %/,%,$(dir $%))", o_automatic, 1);
|
||||
define_variable_cname ("*D", "$(patsubst %/,%,$(dir $*))", o_automatic, 1);
|
||||
|
|
Loading…
Reference in a new issue