From 46d9871e50088b2796ed393042d1fe36c62b3e15 Mon Sep 17 00:00:00 2001 From: Lexi <154900034+llfw@users.noreply.github.com> Date: Sun, 9 Jun 2024 08:16:43 +0100 Subject: [PATCH] Makefile: include Makefile.local (#896) This allows local build options (like LLAMA_*) to be set in the local file instead of having to edit Makefile, or provide a long gmake command line on every build. Using '-include' avoids generating a warning if Makefile.local doesn't exist. --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 22c358e6fd392..3e66b38db5a18 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,6 @@ +# Add custom options to Makefile.local rather than editing this file. +-include $(abspath $(lastword ${MAKEFILE_LIST})).local + default: koboldcpp_default koboldcpp_failsafe koboldcpp_openblas koboldcpp_noavx2 koboldcpp_clblast koboldcpp_clblast_noavx2 koboldcpp_cublas koboldcpp_hipblas koboldcpp_vulkan koboldcpp_vulkan_noavx2 tools: quantize_gpt2 quantize_gptj quantize_gguf quantize_neox quantize_mpt quantize_clip whispermain sdmain gguf-split dev: koboldcpp_openblas