-
Notifications
You must be signed in to change notification settings - Fork 233
Expand file tree
/
Copy pathMakefile
More file actions
55 lines (46 loc) · 1.15 KB
/
Makefile
File metadata and controls
55 lines (46 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
CMDS := zoekt yarn
ALL: $(CMDS)
yarn:
yarn install
yarn build:deps
zoekt:
mkdir -p bin
go build -C vendor/zoekt -o $(PWD)/bin ./cmd/...
export PATH="$(PWD)/bin:$(PATH)"
export CTAGS_COMMANDS=ctags
clean:
@if docker ps 2>/dev/null | grep -q sourcebot-redis; then \
echo "Flushing Redis in Docker container..."; \
docker exec sourcebot-redis redis-cli FLUSHALL; \
else \
echo "Flushing local Redis..."; \
redis-cli FLUSHALL; \
fi
yarn dev:prisma:migrate:reset
rm -rf \
bin \
node_modules \
packages/web/node_modules \
packages/web/.next \
packages/backend/dist \
packages/backend/node_modules \
packages/db/node_modules \
packages/db/dist \
packages/schemas/node_modules \
packages/schemas/dist \
packages/mcp/node_modules \
packages/mcp/dist \
packages/shared/node_modules \
packages/shared/dist \
.sourcebot
soft-reset:
rm -rf .sourcebot
@if docker ps 2>/dev/null | grep -q sourcebot-redis; then \
echo "Flushing Redis in Docker container..."; \
docker exec sourcebot-redis redis-cli FLUSHALL; \
else \
echo "Flushing local Redis..."; \
redis-cli FLUSHALL; \
fi
yarn dev:prisma:migrate:reset
.PHONY: bin