From 7499a6bd4b714aa1bb43284ed87ccf072faa3825 Mon Sep 17 00:00:00 2001 From: bebopkim Date: Sun, 30 Jun 2024 17:05:03 +0900 Subject: [PATCH] Resolve `make: *** No rule to make target `ggml-metal.m', needed by `ggml-metal.o'. Stop` error on macOS Metal (#957) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9a3df6e5c..1f36afe87 100644 --- a/Makefile +++ b/Makefile @@ -271,7 +271,7 @@ ifdef LLAMA_METAL LDFLAGS += -framework Foundation -framework Metal -framework MetalKit -framework MetalPerformanceShaders OBJS += ggml-metal.o -ggml-metal.o: ggml-metal.m ggml-metal.h +ggml-metal.o: ggml/src/ggml-metal.m ggml/include/ggml-metal.h @echo "== Preparing merged Metal file ==" @sed -e '/#include "ggml-common.h"/r ggml/src/ggml-common.h' -e '/#include "ggml-common.h"/d' < ggml/src/ggml-metal.metal > ggml/src/ggml-metal-merged.metal $(CC) $(CFLAGS) -c $< -o $@