File tree Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 2
2
DOCKER =$(shell which docker)
3
3
GIT =$(shell which git)
4
4
5
+ # Other paths
6
+ ROOT_PATH := $(CURDIR )
7
+ BUILD_DIR := build
8
+
5
9
# Set OS and Architecture
6
10
ARCH ?= $(shell arch | tr A-Z a-z | sed 's/x86_64/amd64/' | sed 's/i386/amd64/' | sed 's/armv7l/arm/' | sed 's/aarch64/arm64/')
7
11
OS ?= $(shell uname | tr A-Z a-z)
@@ -39,7 +43,7 @@ docker: docker-dep docker-base
39
43
-f Dockerfile.llamacpp .
40
44
41
45
# Build llama-server
42
- llama-server : submodule
46
+ llama-server : submodule-checkout
43
47
@echo " Building llama-server"
44
48
@cd llama.cpp && make -j$(nproc ) llama-server
45
49
@@ -56,10 +60,20 @@ submodule-update: git-dep
56
60
@${GIT} submodule foreach git pull origin master
57
61
58
62
# Submodule checkout
59
- submodule : git-dep
63
+ submodule-checkout : git-dep
60
64
@echo " Checking out submodules"
61
65
@${GIT} submodule update --init --recursive --remote
62
66
67
+ # Make build directory
68
+ mkdir :
69
+ @echo Mkdir ${BUILD_DIR}
70
+ @install -d ${BUILD_DIR}
71
+
72
+ # Clean
73
+ clean : submodule-clean
74
+ @echo " Cleaning"
75
+ @rm -rf ${BUILD_DIR}
76
+
63
77
# Check for docker
64
78
docker-dep :
65
79
@test -f " ${DOCKER} " && test -x " ${DOCKER} " || (echo " Missing docker binary" && exit 1)
You can’t perform that action at this time.
0 commit comments