From fc7e7256f8efd036c74d80081e880085185a8fa1 Mon Sep 17 00:00:00 2001 From: Jenny Li Date: Wed, 2 Nov 2022 15:39:35 +0800 Subject: [PATCH] Add install support to mac (#20261) Signed-off-by: Jenny Li Signed-off-by: Jenny Li --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index bb967883bd..62fdd5d27f 100644 --- a/Makefile +++ b/Makefile @@ -240,7 +240,12 @@ docker: install install: milvus @echo "Installing binary to './bin'" @mkdir -p $(GOPATH)/bin && cp -f $(PWD)/bin/milvus $(GOPATH)/bin/milvus - @mkdir -p $(LIBRARY_PATH) && cp -r -P $(PWD)/internal/core/output/lib/*.so* $(LIBRARY_PATH) + @mkdir -p $(LIBRARY_PATH) +ifeq ($(OS),Darwin) + @cp -r -P $(PWD)/internal/core/output/lib/*.dylib* $(LIBRARY_PATH) +else + @cp -r -P $(PWD)/internal/core/output/lib/*.so* $(LIBRARY_PATH) +endif @echo "Installation successful." clean: