mirror of
https://gitlab.gwdg.de/j.hahn02/ws-numerik.git
synced 2026-03-01 19:32:42 +01:00
38 lines
749 B
Makefile
38 lines
749 B
Makefile
# List all targets by providing no target
|
|
default:
|
|
@just --list
|
|
|
|
# Setup python environment with uv
|
|
setup:
|
|
uv sync
|
|
# Instantiate julia
|
|
julia --project=. -e 'using Pkg; Pkg.instantiate()'
|
|
|
|
# Run the python main entrypoint
|
|
test:
|
|
uv run python main.py
|
|
|
|
# Run code that generates output
|
|
output: ensure-build
|
|
julia --project=. main.jl
|
|
uv run python main.py
|
|
|
|
# Build document and open in zathura
|
|
build: output
|
|
rm build/main.pdf || true
|
|
typst compile main.typ build/main.pdf
|
|
zathura build/main.pdf >/dev/zero 2>&1 & disown
|
|
|
|
# Format code in place
|
|
format:
|
|
typstyle -i main.typ
|
|
|
|
ensure-build:
|
|
mkdir -p build
|
|
|
|
# Clean artifacts
|
|
clean:
|
|
rm -r build || true
|
|
rm main.pdf || true
|
|
rm -r .venv || true
|