-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
60 lines (41 loc) · 1.13 KB
/
Makefile
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
.PHONY: clean cleanall develop list-sessions tests doc
develop: sync
pdm run pip install -e plugins/fluidfft-fftw --no-build-isolation -v
develop_mpi_with_fftw:
pdm run pip install -e plugins/fluidfft-mpi_with_fftw --no-build-isolation -v
develop_fftwmpi:
pdm run pip install -e plugins/fluidfft-fftwmpi --no-build-isolation -v
develop_pfft:
pdm run pip install -e plugins/fluidfft-pfft --no-build-isolation -v
develop_p3dfft:
pdm run pip install -e plugins/fluidfft-p3dfft --no-build-isolation -v
sync:
pdm sync --clean
lock:
pdm lock
clean:
rm -rf build
cleanso:
find src -name "*.so" -delete
cleanpythran:
find src -name __pythran__ -type d -exec rm -rf "{}" +
cleanall: clean cleanso cleanpythran
black:
pdm run black
tests:
pytest -s tests
tests_mpi:
mpirun -np 2 pytest -s tests
tests_mpi4:
mpirun -np 4 pytest -s tests
clang-format:
find src_cpp/ -iname '*.h' -o -iname '*.cpp' | xargs clang-format -i
list-sessions:
@nox --version 2>/dev/null || pip install nox
@nox -l
doc:
nox -s doc
# Catch-all target: route all unknown targets to nox sessions
%:
@nox --version 2>/dev/null || pip install nox
@nox -s $@