Skip to content

Commit 12c0532

Browse files
committed
Add RUNTIME_TOOLS_LINK in Makefile
So we can build runtime_tools project anyway. Signed-off-by: Qiang Huang <[email protected]>
1 parent 389c73a commit 12c0532

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,6 @@ oci
3131

3232
*.1
3333
*.patch
34+
35+
# Temporary symbol links
36+
Godeps/_workspace/src/github.com/opencontainers/runtime-tools

Makefile

+6-1
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ PREFIX ?= $(DESTDIR)/usr
22
BINDIR ?= $(DESTDIR)/usr/bin
33

44
BUILDTAGS=
5+
RUNTIME_TOOLS_LINK := $(CURDIR)/Godeps/_workspace/src/github.com/opencontainers/runtime-tools
56
export GOPATH:=$(CURDIR)/Godeps/_workspace:$(GOPATH)
67

7-
all:
8+
all: $(RUNTIME_TOOLS_LINK)
89
go build -tags "$(BUILDTAGS)" -o oci-runtime-tool ./cmd/oci-runtime-tool
910
go build -tags "$(BUILDTAGS)" -o runtimetest ./cmd/runtimetest
1011

@@ -24,6 +25,10 @@ install: man
2425

2526
clean:
2627
rm -f oci-runtime-tool runtimetest *.1
28+
rm -f $(RUNTIME_TOOLS_LINK)
29+
30+
$(RUNTIME_TOOLS_LINK):
31+
ln -sf $(CURDIR) $(RUNTIME_TOOLS_LINK)
2732

2833
.PHONY: test .gofmt .govet .golint
2934

0 commit comments

Comments
 (0)