Skip to content

Distribute and run LLMs with a single file.

Fix o/depend file build

Justine Tunneyaa58b3a53aa5
diff --git a/Makefile b/Makefile
index c31532ea..a8d74839 100644
--- a/Makefile
+++ b/Makefile
@@ -17,7 +17,7 @@ include llama.cpp/BUILD.mk
# the root package is `o//` by default
# building a package also builds its sub-packages
.PHONY: o/$(MODE)/
-o/$(MODE)/: o/$(MODE)/llama.cpp o/$(MODE)/llamafile
+o/$(MODE)/: o/$(MODE)/llama.cpp o/$(MODE)/llamafile o/$(MODE)/depend.test
# for installing to `make PREFIX=/usr/local`
.PHONY: install
diff --git a/build/deps.mk b/build/deps.mk
index b5cc9673..1479154c 100644
--- a/build/deps.mk
+++ b/build/deps.mk
@@ -9,6 +9,10 @@ o/$(MODE)/depend: $(SRCS) $(HDRS) $(INCS)
@mkdir -p $(@D)
$(MKDEPS) -o $@ -r o/$(MODE)/ $(SRCS) $(HDRS) $(INCS)
+o/$(MODE)/depend.test: $(SRCS) $(HDRS) $(INCS)
+ @mkdir -p $(@D)
+ $(MKDEPS) -o $@ -r o/$(MODE)/ $(SRCS) $(HDRS) $(INCS)
+
$(SRCS):
$(HDRS):
$(INCS):
diff --git a/llamafile/iqk_mul_mat.inc b/llamafile/iqk_mul_mat.inc
index 76d5b175..d41ed8b9 100644
--- a/llamafile/iqk_mul_mat.inc
+++ b/llamafile/iqk_mul_mat.inc
@@ -17,8 +17,8 @@
#ifdef __x86_64__
-#include "../llama.cpp/ggml-impl.h"
-#include "../llama.cpp/ggml-quants.h"
+#include "llama.cpp/ggml-impl.h"
+#include "llama.cpp/ggml-quants.h"
#include "sgemm.h"
// clang-format off