-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (25 loc) · 1007 Bytes
/
Copy pathMakefile
File metadata and controls
39 lines (25 loc) · 1007 Bytes
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
.PHONY: ingestion ingestion-build ingestion-configure pipeline pipeline-install client-dev client-build client clean
# -- Ingestion (C++) --
ingestion: ingestion-build
cd ingestion && ./build/ingestion
ingestion-build: ingestion/build/CMakeCache.txt
cd ingestion && cmake --build build
ingestion-configure:
cd ingestion && cmake -B build -DCMAKE_BUILD_TYPE=Release
ingestion/build/CMakeCache.txt:
cd ingestion && cmake -B build -DCMAKE_BUILD_TYPE=Release
# -- Pipeline (Python) --
pipeline:
PYTHONPATH=$(CURDIR) pipeline/.venv/bin/python -m pipeline.main
pipeline-install:
cd pipeline && python3 -m venv .venv && .venv/bin/pip install -r requirements.txt
# -- Frontend (Next.js) --
client-dev:
cd frontend && npx tsx server.ts
client-build:
cd frontend && npm run build && npx tsc -p tsconfig.server.json
client: frontend-build
cd frontend && NODE_ENV=production node dist/server.js
# -- Cleanup --
clean:
rm -rf ingestion/build frontend/.next frontend/dist pipeline/data/graph.json