-
-
Notifications
You must be signed in to change notification settings - Fork 756
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$< make #745
$< make #745
Conversation
Changing the Makefile from $< to bin/n works.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small simplification.
Thanks for fix.
Makefile
Outdated
@@ -1,8 +1,8 @@ | |||
PREFIX ?= /usr/local | |||
|
|||
install: bin/n | |||
mkdir -p $(PREFIX)/$(dir $<) | |||
cp $< $(PREFIX)/$< | |||
mkdir -p $(PREFIX)/$(dir bin/n) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Simplify the (now) hard-coded directory name:
mkdir -p $(PREFIX)/$(dir bin/n) | |
mkdir -p $(PREFIX)/bin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is done. Thank you.
For interest, The FreeBSD man page for make says:
but then does not mention |
Thanks @kaiquekandykoga |
Released in v9.0.1 |
Apparently $< is not working propertly on FreeBSD.
Changing the Makefile from $< to bin/n works.