-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
67 lines (54 loc) · 1.73 KB
/
Copy pathMakefile
File metadata and controls
67 lines (54 loc) · 1.73 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
56
57
58
59
60
61
62
63
64
65
66
67
CFD_IMAGE=cfd
.PHONY: help
help:
@echo ======================================================================================
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
@echo ======================================================================================
.PHONY: cfd-build
cfd-build: ## Build the CFD Docker image
@docker build -f cfd/dev/cfd.dockerfile -t $(CFD_IMAGE) .
.PHONY: cfd-cases
cfd-cases: ## Run CFD cases in the Docker image
@docker run --rm \
-v $(PWD)/cfd:/workspace/cfd \
$(CFD_IMAGE) \
/project/.venv/bin/python -m cfd.cli
.PHONY: cfd-shell
cfd-shell: ## Run a bash shell in the CFD Docker image
@docker run --rm -it \
-v $(PWD)/cfd:/workspace/cfd \
$(CFD_IMAGE) \
bash
.PHONY: cfd-test
cfd-test: ## Run CFD tests inside the Docker image
@docker run --rm \
-v $(PWD):/workspace \
$(CFD_IMAGE)-test \
pytest
.PHONY: cfd-test-build
cfd-test-build: ## Build the CFD test Docker image
@docker build -f cfd/dev/cfd-test.dockerfile -t $(CFD_IMAGE)-test .
.PHONY: clean
clean: ## Remove observable cache files
@rm -rf content/.observablehq/cache
@rm -rf dist
.PHONY: cv
cv: ## Build CV
@cd cv &&\
pdflatex luca-sbardella-cv.tex &&\
mv luca-sbardella-cv.pdf ../content/data/luca-sbardella-cv.pdf
.PHONY: install-tex
install-tex: ## Install texlive dependencies
@./extra/ubuntu-install
.PHONY: phd
phd: ## Download phd thesis
curl -L -o dist/phd-thesis.pdf https://raw.githubusercontent.com/lsbardel/phd/main/thesis/thesis.pdf
.PHONY: py-install
py-install: ## Install python dependencies
@uv sync --all-extras
.PHONY: py-lint
py-lint: ## Lint python code
@uv run .dev/py-lint fix
.PHONY: rs-lint
rs-lint: ## Lint rust code
@uv run .dev/rs-lint fix