[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: |
Thu, 8 Aug 2019 10:03:57 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 |
Follow-up Comment #1, bug #56732 (project make):
Your example doesn't seem to rely on VPATH in any way. Remember: VPATH is used
as a place to look for files.
Also you are using "-lAbc" as prerequisite for output/%. It seems you are
intending to use linker flags as input to the recipe. The way you wrote is it
wrong, it will cause make to look for a file named "-lAbc" (which it won't
find and abort recipe search). Run make with the flag "-d" to see makes
reasoning.
Read up on using implicit rules, and the variables used for the builtin rules
by make. You might want to replace "-lAbc" with "libAbc.a" and maybe add
appropriate variables if you use the built-in recipes.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?56732>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/