Last active
July 3, 2019 02:36
-
-
Save begriffs/f17dae83bea939c1586410e5d24bd994 to your computer and use it in GitHub Desktop.
Installing binaries as needed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VPATH=/usr/local/bin | |
BINARIES=ruby node | |
all : ${BINARIES} | |
echo "Deps are installed" | |
${BINARIES} : | |
asdf plugin-add $@ |
Is `VPATH` doing anything here?
Yep, the viewpath (aka VPATH) specifies directories to search for
prerequisites. Make will consult these directories searching for in our
case for "ruby" or "node."
I don't see VPATH in the POSIX spec for make [0], so it may not work for
every implementation. However, the book Managing Projects With Make [1]
talks about VPATH in Chapter 5. That book is really worth a read if you
haven't already.
0: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/make.html
1: http://shop.oreilly.com/product/9780937175903.do
This is incredible. Thanks man. I really appreciate it.
… On Jul 2, 2019, at 7:14 PM, Joe Nelson ***@***.***> wrote:
> Is `VPATH` doing anything here?
Yep, the viewpath (aka VPATH) specifies directories to search for
prerequisites. Make will consult these directories searching for in our
case for "ruby" or "node."
I don't see VPATH in the POSIX spec for make [0], so it may not work for
every implementation. However, the book Managing Projects With Make [1]
talks about VPATH in Chapter 5. That book is really worth a read if you
haven't already.
0: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/make.html
1: http://shop.oreilly.com/product/9780937175903.do
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is
VPATH
doing anything here?