Skip to content
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

Added install function to install to /usr/local/bin/ with sudo make i… #90

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

ghost
Copy link

@ghost ghost commented Mar 8, 2016

…nstall


install:
@mkdir -p /usr/local/bin
@cp build/xhyve /usr/local/bin/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use install like @install -CSv $(TARGET) /usr/local/bin/ instead.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -109,5 +109,4 @@ clean:
@rm -rf build

install:
@mkdir -p /usr/local/bin
@cp build/xhyve /usr/local/bin/
$(TARGET)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This definitely won't work. You want to make $(TARGET) a dependency and then copy the $(TARGET) into place.

FWIW, I suggest using the Xcode project over the Makefile if you are building on macOS. The main reason for the Makefile is for folks building on other systems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants