Distribute and run LLMs with a single file.
C++ cross-platformggufllama-cpplocal-ailocal-inferencelocal-llmopen-source-aisingle-file-executablespeech-to-text
Add `make install` build rule
Justine Tunney762ad797fef9
diff --git a/Makefile b/Makefileindex 342dc5fc..14f9296d 100644--- a/Makefile+++ b/Makefile@@ -19,5 +19,22 @@ include llama.cpp/BUILD.mk.PHONY: o/$(MODE)/o/$(MODE)/: o/$(MODE)/llama.cpp o/$(MODE)/llamafile+# for installing to `make PREFIX=/usr/local`+.PHONY: install+install: o/$(MODE)/llamafile/zipalign \+ o/$(MODE)/llama.cpp/main/main \+ o/$(MODE)/llama.cpp/server/server \+ o/$(MODE)/llama.cpp/quantize/quantize \+ o/$(MODE)/llama.cpp/perplexity/perplexity \+ o/$(MODE)/llama.cpp/llava/llava-cli \+ o/$(MODE)/llama.cpp/llava/llava-quantize+ $(INSTALL) o/$(MODE)/llamafile/zipalign $(PREFIX)/bin/zipalign+ $(INSTALL) o/$(MODE)/llama.cpp/main/main $(PREFIX)/bin/llamafile+ $(INSTALL) o/$(MODE)/llama.cpp/server/server $(PREFIX)/bin/llamafile-server+ $(INSTALL) o/$(MODE)/llama.cpp/quantize/quantize $(PREFIX)/bin/llamafile-quantize+ $(INSTALL) o/$(MODE)/llama.cpp/perplexity/perplexity $(PREFIX)/bin/llamafile-perplexity+ $(INSTALL) o/$(MODE)/llama.cpp/llava/llava-cli $(PREFIX)/bin/llamafile-llava-cli+ $(INSTALL) o/$(MODE)/llama.cpp/llava/llava-quantize $(PREFIX)/bin/llamafile-llava-quantize+include build/deps.mkinclude build/tags.mkdiff --git a/build/config.mk b/build/config.mkindex 0b793ff6..a06981b0 100644--- a/build/config.mk+++ b/build/config.mk@@ -1,11 +1,13 @@#-*-mode:makefile-gmake;indent-tabs-mode:t;tab-width:8;coding:utf-8-*-┐#───vi: set et ft=make ts=8 tw=8 fenc=utf-8 :vi───────────────────────┘-PREFIX = cosmo+PREFIX = /usr/local+TOOLCHAIN = cosmo-AR = $(PREFIX)ar-CC = $(PREFIX)cc-CXX = $(PREFIX)c+++AR = $(TOOLCHAIN)ar+CC = $(TOOLCHAIN)cc+CXX = $(TOOLCHAIN)c+++INSTALL = installARFLAGS = rcsDCCFLAGS = -g -O3