summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2026-03-13 09:26:11 +0300
committerGrail Finder <wohilas@gmail.com>2026-03-13 09:26:11 +0300
commit13773bcc977a761ec2cef0a1d43f210634841548 (patch)
treedc02de0bdc8a8c2c6f9d625aebf580d6dacdfa03 /Makefile
parente77dbb3160bb3999a98f9fc3f9aac62909cee4a4 (diff)
parentd9b820c9c4971922fcde0b373f70c54c870446d5 (diff)
Merge branch 'master' into feat/agent-flow
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 1490074..d514a3f 100644
--- a/Makefile
+++ b/Makefile
@@ -134,8 +134,9 @@ setup-whisper: build-whisper download-whisper-model
build-whisper: ## Build whisper.cpp from source in batteries directory
@echo "Building whisper.cpp from source in batteries directory..."
- @if [ ! -d "batteries/whisper.cpp" ]; then \
+ @if [ ! -f "batteries/whisper.cpp/CMakeLists.txt" ]; then \
echo "Cloning whisper.cpp repository to batteries directory..."; \
+ rm -rf batteries/whisper.cpp; \
git clone https://github.com/ggml-org/whisper.cpp.git batteries/whisper.cpp; \
fi
cd batteries/whisper.cpp && cmake -B build -DGGML_CUDA=ON -DWHISPER_SDL2=ON; cmake --build build --config Release -j 8
@@ -144,7 +145,7 @@ build-whisper: ## Build whisper.cpp from source in batteries directory
download-whisper-model: ## Download Whisper model for STT in batteries directory
@echo "Downloading Whisper model for STT..."
@if [ ! -d "batteries/whisper.cpp/models" ]; then \
- mkdir -p "batteries/whisper.cpp/models" \
+ mkdir -p "batteries/whisper.cpp/models"; \
fi
curl -o batteries/whisper.cpp/models/ggml-large-v3-turbo-q5_0.bin -L "https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-large-v3-turbo-q5_0.bin?download=true"
@echo "Whisper model downloaded successfully!"