summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2026-02-18 01:45:41 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2026-02-18 01:45:41 +0100
commite74b94bd473a15a88c7301a2c6f1854749c342e1 (patch)
tree858c068199c0581a40b26e9f08e16e08f3478635 /Makefile
parent25cf1b05d9ad73ff0d5024277beda7101b8e9aea (diff)
downloadllmnpc-e74b94bd473a15a88c7301a2c6f1854749c342e1.tar.gz
Seperate NPC from Prompt and Context
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 10 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 537ea3b..ba4deab 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
MAKEFLAGS += -j4
-MEX_ASSURE="cc docker wget"
+MEX_ASSURE="cc docker wget xxd"
include makext.mk
@@ -12,8 +12,8 @@ LDFLAGS = -L$(LLAMA_DIR)/build/src -L$(LLAMA_DIR)/build/ggml/src \
help: .help
-build/prompt: prompt.c vectordb.c models.h # Build prompt binary for testing
- $(CC) $(CFLAGS) prompt.c vectordb.c -o prompt $(LDFLAGS)
+build/npc: run/system-prompt npc.c vectordb.c models.h # Build npc binary for testing
+ $(CC) $(CFLAGS) npc.c vectordb.c -o npc $(LDFLAGS)
build/context: context.c vectordb.c models.h # Build context binary for testing
$(CC) $(CFLAGS) context.c vectordb.c -o context $(LDFLAGS)
@@ -28,11 +28,14 @@ run/fetch-models: .assure # Fetch GGUF models
-mkdir -p models
cd models && wget -nc -i ../models.txt
-run/docker: .assure # Runs prompt in Docker container
- docker build -t promptd .
- docker run -it promptd
+run/docker: .assure # Runs npc in Docker container
+ docker build -t npcd .
+ docker run -it npcd
+
+run/system-prompt: .assure # Generate C style header
+ xxd -i system_prompt.txt > system_prompt.h
run/clean: # Cleans up all the build artefacts
- -rm -f prompt
+ -rm -f npc
cd $(LLAMA_DIR)/build && make clean
-rm -Rf $(LLAMA_DIR)/build