-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (21 loc) · 898 Bytes
/
Copy pathMakefile
File metadata and controls
28 lines (21 loc) · 898 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
.PHONY: build-release setup data serve benchmarks benchmarks-offline
build-release:
cargo build --release --manifest-path=./wxrs/Cargo.toml --target-dir=./wxrs/target
# Create the Python environment from the committed lockfile.
setup:
cd wxpy && uv sync
# Chapter 5 works on the Project FeederWatch dataset, which is checked in as a
# 7z archive because the extracted CSV is ~1.4GB. The extracted .csv is
# gitignored.
data: lib/PFW_2016_2020_public.csv
lib/PFW_2016_2020_public.csv:
cd lib && uv run --no-project --with py7zr python -c \
"import py7zr; py7zr.SevenZipFile('PFW_2016_2020_public.7z').extractall('.')"
serve:
cd rust4data-book && make $@
# Everything, including the benchmarks that need an OpenWeather API key.
benchmarks:
cd benchmarks && make all
# Just the benchmarks that run without network access or an API key.
benchmarks-offline:
cd benchmarks && make offline