forked from MaRDI4NFDI/open-interfaces
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (37 loc) · 983 Bytes
/
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
.PHONY : all
all :
cmake -S . -B build.debug \
-DCMAKE_VERBOSE_MAKEFILE:BOOL=TRUE \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
&& \
cmake --build build.debug && \
rm -f build && \
ln -sv build.debug build
.PHONY : test
test :
cd build && ctest --output-on-failure
pytest tests/lang_python
.PHONY : pytest-valgrind
pytest-valgrind :
PYTHONMALLOC=malloc valgrind --show-leak-kinds=definite --log-file=/tmp/valgrind-output \
python -m pytest -s -vv --valgrind --valgrind-log=/tmp/valgrind-output
.PHONY : release
release :
cmake -S . -B build.release \
-DCMAKE_VERBOSE_MAKEFILE:BOOL=FALSE \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
&& \
cmake --build build.release && \
rm -f build && \
ln -sv build.release build
.PHONY : clean
clean :
$(RM) -r build build.debug build.release
.PHONY : docs
docs :
cd docs && make html
.PHONY : docs-from-scratch
docs-from-scratch:
cd docs && rm -rf build && make html