From 886c404a7b6857baffa5fe2bc68156d632e18ab0 Mon Sep 17 00:00:00 2001 From: Changewei Ge Date: Fri, 1 Jul 2022 15:15:52 +0800 Subject: [PATCH] makefile: add target `install` We don't provide software package yet. In order to let users easily install nydus tool chain onto machine. We'd better provide `make install` to automatically copy necessary binaris to run nydus-snapshotter, thus to pull and run nydus image. Moreover, nydus-snapshotter had already provide `make install` helper. Signed-off-by: Changewei Ge --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 058d3795a82..0bc8ffe49f8 100644 --- a/Makefile +++ b/Makefile @@ -83,6 +83,10 @@ clean: ${CARGO} clean --target-dir ${current_dir}/target-virtiofs ${CARGO} clean --target-dir ${current_dir}/target-fusedev +install: fusedev-release + @sudo install -D -m 755 target-fusedev/release/nydusd /usr/local/bin/nydusd + @sudo install -D -m 755 target-fusedev/release/nydus-image /usr/local/bin/nydus-image + # If virtiofs test must be performed, only run binary part # Use same traget to avoid re-compile for differnt targets like gnu and musl ut: