Skip to content

Commit 18b7cfd

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 18b7cfd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Makefile

Lines changed: 6 additions & 1 deletion
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 -sfn $(CURDIR) $(RUNTIME_TOOLS_LINK)
2732

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

0 commit comments

Comments
 (0)