Skip to content

Commit a9f9eaa

Browse files
author
Sabin Rapan
committed
makefile: Add install rule for command-executer
Signed-off-by: Sabin Rapan <[email protected]>
1 parent 49d06e0 commit a9f9eaa

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,8 @@ nitro-cli-native:
163163
--target=x86_64-unknown-linux-musl \
164164
--target-dir=/nitro_build/command-executer && \
165165
chmod -R 777 nitro_build '
166+
ln -sf ../x86_64-unknown-linux-musl/release/command-executer \
167+
${OBJ_PATH}/command-executer/release/command-executer
166168
touch $@
167169

168170
command-executer: build-setup build-container .build-command-executer
@@ -258,6 +260,12 @@ vsock-proxy-native:
258260
--manifest-path=${BASE_PATH}/vsock_proxy/Cargo.toml \
259261
--target-dir=${OBJ_PATH}/vsock_proxy
260262

263+
.PHONY: install-command-executer
264+
install-command-executer:
265+
$(MKDIR) -p ${NITRO_CLI_INSTALL_DIR}/${SBIN_DIR}
266+
$(INSTALL) -D -m 0755 $(OBJ_PATH)/command-executer/release/command-executer ${NITRO_CLI_INSTALL_DIR}/${SBIN_DIR}/command-executer
267+
268+
261269
# Target for installing only the binaries available to the end-user
262270
.PHONY: install-tools
263271
install-tools:

0 commit comments

Comments
 (0)