[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #28456] Expansion of $$< is incorrect
From: |
Robert Bogomip |
Subject: |
[bug #28456] Expansion of $$< is incorrect |
Date: |
Thu, 2 Nov 2017 12:51:39 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0 |
Follow-up Comment #6, bug #28456 (project make):
The handling of *$<* under *SECONDEXPANSION* seems well broken as of 4.2.1.
With an implicit rule:
$ cat Makefile
.SECONDEXPANSION:
%.2: %.1 $$(info [$$<] address@hidden) ; : $@ Success
$ ls
foo.1 Makefile
$ make foo.2
[foo.2] [foo.2]
: foo.2 Success
Notice that $< expands to the target rather than a pre-requisite (!).
The situation for explicit rules is arguably worse:
$ cat Makefile
.SECONDEXPANSION:
foo.2: %.2: %.1 $$(info [$$<] address@hidden) ; : $@ Success
$ ls
foo.1 Makefile
$ make foo.2
[] [foo.2]
: foo.2 Success
$< is now empty. Can't find any syntax to change this.
Current cygwin make BTW
$ make --version
GNU Make 4.2.1
Built for x86_64-unknown-cygwin
Copyright (C) 1988-2016 Free Software Foundation, Inc.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?28456>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug #28456] Expansion of $$< is incorrect,
Robert Bogomip <=