[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #56732] VPATH doesn't work with pattern rules
From: |
anonymous |
Subject: |
[bug #56732] VPATH doesn't work with pattern rules |
Date: |
Fri, 9 Aug 2019 06:25:27 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Firefox/60.0 |
Follow-up Comment #2, bug #56732 (project make):
Thanks for looking at this. Make supports linker flags as dependencies of a
recipe and automatically searches for the .a/.so file using VPATH. See the
relevant section of the manual, 4.5.6 "Directory Search for Link Libraries".
I should have emphasised that this *does* work if it's *not* a pattern rule.
In other words, if you replace this line:
output/% : input/%.in -lAbc
with:
output/example : input/example.in -lAbc
then the recipe works as expected (but, obviously, only for a file named
"example"; unfortunately in my use case I need to build an arbitrary set of
files, i.e. I need a pattern rule).
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?56732>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/