-
Notifications
You must be signed in to change notification settings - Fork 158
Add RUNTIME_TOOLS_LINK in Makefile #262
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
Conversation
So we can build runtime_tools project anyway. Signed-off-by: Qiang Huang <[email protected]>
18b7cfd to
a597474
Compare
Makefile
Outdated
| rm -f $(RUNTIME_TOOLS_LINK) | ||
|
|
||
| $(RUNTIME_TOOLS_LINK): | ||
| ln -sfn $(CURDIR) $(RUNTIME_TOOLS_LINK) |
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.
-n is not in POSIX. Do we really need it to support this use-case?
|
This feels sort of like opencontainers/image-tools#52. runtime-tools
builds fine as it stands if you've checked it out to an appropriate
location in your $GOPATH.
|
a597474 to
12c0532
Compare
|
@wking It's ok we don't use It makes it more convenient like what we did in runc. |
| BINDIR ?= $(DESTDIR)/usr/bin | ||
|
|
||
| BUILDTAGS= | ||
| RUNTIME_TOOLS_LINK := $(CURDIR)/Godeps/_workspace/src/github.com/opencontainers/runtime-tools |
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.
Does this approach confuse godep save, godep update and such? Maybe it would be better to setup a second tree:
LOCAL_GOPATH := $(CURDIR)/_workspace
RUNTIME_TOOLS_LINK := $(LOCAL_GOPATH)/src/github.com/opencontainers/runtime-tools
export GOPATH:=$(LOCAL_GOPATH):$(CURDIR)/Godeps/_workspace:$(GOPATH)|
LGTM |
1 similar comment
|
@caniszczyk FYI @mrunalp's LGTM did not trigger pullapprove |
So we can build runtime_tools project anyway.
Signed-off-by: Qiang Huang [email protected]