This repository has been archived by the owner on Feb 13, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 56
/
Copy pathMakefile
70 lines (60 loc) · 1.38 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
61
62
63
64
65
66
67
68
69
70
.PHONY: dist docs
dist:
# make dist version="X.X.X"
rm -rf dist
mkdir dist
make dist_source
make dist_docs version=$(version)
make dist_examples
clean_examples:
rm -f ./examples/*.fbd
rm -f ./examples/*.inp
rm -f ./examples/*.geo
rm -f ./examples/*.msh
rm -f ./examples/*.frd
rm -f ./examples/*.dat
rm -f ./examples/*.png
rm -f ./examples/*.cvg
rm -f ./examples/*.sta
rm -f ./examples/*.out
clean:
rm -f ./*.fbd
rm -f ./*.inp
rm -f ./*.geo
rm -f ./*.msh
rm -f ./*.frd
rm -f ./*.dat
rm -f ./*.png
rm -f ./*.cvg
rm -f ./*.sta
rm -f ./*.out
dist_examples:
make clean_examples
zip -r examples.zip examples
mv examples.zip dist/
dist_docs:
# make dist_docs version="X.X.X"
rm -rf docs
rm -rf documentation
sphinx-apidoc -F -H "pycalculix" -V $(version) -A "Justin Black" -o docs pycalculix
echo " " >> docs/conf.py
echo "extensions = ['sphinx.ext.autodoc'," >> docs/conf.py
echo " 'sphinx.ext.napoleon'," >> docs/conf.py
echo " 'sphinx.ext.todo'," >> docs/conf.py
echo " 'sphinx.ext.viewcode']" >> docs/conf.py
sphinx-build -b html docs documentation
rm -R -f documentation/.doctrees
zip -r documentation.zip documentation
mv documentation.zip dist/
rm -rf documentation
dist_source:
python3 setup.py sdist --formats=zip
rm -rf *.egg-info
develop:
pip3 install -e .
install:
pip3 install .
uninstall:
pip3 uninstall pycalculix
test:
pytest tests/