Skip to content

Commit d438689

Browse files
committed
Fix "Installing from source" instructions
Fixes google#6387
1 parent 84063e8 commit d438689

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,9 @@ Make sure the following dependencies are installed:
6161
Build and install the `runsc` binary:
6262

6363
```sh
64-
make runsc
65-
sudo cp ./bazel-bin/runsc/linux_amd64_pure_stripped/runsc /usr/local/bin
64+
mkdir -p bin
65+
make copy TARGETS=runsc DESTINATION=bin/
66+
sudo cp ./bin/runsc /usr/local/bin
6667
```
6768

6869
### Testing

tools/bazel.mk

+2-2
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ build_paths = \
186186
(set -euo pipefail; \
187187
$(call wrapper,$(BAZEL) build $(BASE_OPTIONS) $(BAZEL_OPTIONS) $(1)) && \
188188
$(call wrapper,$(BAZEL) cquery $(BASE_OPTIONS) $(BAZEL_OPTIONS) $(1) --output=starlark --starlark:file=tools/show_paths.bzl) \
189-
| xargs -r -n 1 -I {} bash -c 'test -e "{}" || exit 0; readlink -f "{}"' \
190-
| xargs -r -n 1 -I {} bash -c 'set -euo pipefail; $(2)')
189+
| xargs -r -I {} bash -c 'test -e "{}" || exit 0; readlink -f "{}"' \
190+
| xargs -r -I {} bash -c 'set -euo pipefail; $(2)')
191191

192192
clean = $(call header,CLEAN) && $(call wrapper,$(BAZEL) clean)
193193
build = $(call header,BUILD $(1)) && $(call build_paths,$(1),echo {})

0 commit comments

Comments
 (0)