Skip to content

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

Open
ghost wants to merge 2 commits intomasterfrom
unknown repository
Open

Added install function to install to /usr/local/bin/ with sudo make i…#90
ghost wants to merge 2 commits intomasterfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Mar 8, 2016

…nstall

Comment thread Makefile Outdated

install:
@mkdir -p /usr/local/bin
@cp build/xhyve /usr/local/bin/
Copy link
Copy Markdown
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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Comment thread Makefile
install:
@mkdir -p /usr/local/bin
@cp build/xhyve /usr/local/bin/
$(TARGET)
Copy link
Copy Markdown
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.

3 participants