-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
62 lines (54 loc) · 2.05 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
ALR_CLEAN = alr clean -- -p
ALR_BUILD = alr build --development --profiles="*=development"
.PHONY: build examples tools tests coverage docs clean
build:
cd orka_egl && $(ALR_BUILD)
cd orka_types && $(ALR_BUILD)
cd orka_simd && $(ALR_BUILD)
cd orka_transforms && $(ALR_BUILD)
cd orka_numerics && $(ALR_BUILD)
cd orka_tensors_cpu && $(ALR_BUILD)
cd orka_opengl && $(ALR_BUILD)
cd orka && $(ALR_BUILD)
cd orka_tensors_gpu && $(ALR_BUILD)
cd orka_plugin_archives && $(ALR_BUILD)
cd orka_plugin_gltf && $(ALR_BUILD)
cd orka_plugin_terrain && $(ALR_BUILD)
cd orka_plugin_atmosphere && $(ALR_BUILD)
cd orka_awt && $(ALR_BUILD)
cd orka_celestial && $(ALR_BUILD)
examples:
cd examples && ADAFLAGS="-gnata" $(ALR_BUILD)
tools:
cd orka_tools && ADAFLAGS="-gnata" $(ALR_BUILD)
tests:
cd tests && ADAFLAGS="--coverage -gnata" $(ALR_BUILD)
cd tests && alr run -s
coverage:
mkdir -p tests/cov
lcov -q -c -d orka_types/build/obj -d orka_simd/build/obj -d orka_transforms/build/obj -d orka_numerics/build/obj -d orka_tensors_cpu/build/obj -d orka/build/obj -o tests/cov/unit.info
lcov -q -r tests/cov/unit.info */adainclude/* -o tests/cov/unit.info
genhtml -q --ignore-errors source -o tests/cov/html tests/cov/unit.info
lcov -l tests/cov/unit.info
docs:
docker run --rm -it -p 8000:8000 -v ${PWD}:/docs:ro -u $(shell id -u):$(shell id -g) squidfunk/mkdocs-material
clean:
find . -type f -name "*.gcda" -exec rm {} \;
cd orka_egl && $(ALR_CLEAN)
cd orka_types && $(ALR_CLEAN)
cd orka_simd && $(ALR_CLEAN)
cd orka_transforms && $(ALR_CLEAN)
cd orka_numerics && $(ALR_CLEAN)
cd orka_tensors_cpu && $(ALR_CLEAN)
cd orka_opengl && $(ALR_CLEAN)
cd orka && $(ALR_CLEAN)
cd orka_tools && $(ALR_CLEAN)
cd orka_plugin_archives && $(ALR_CLEAN)
cd orka_plugin_gltf && $(ALR_CLEAN)
cd orka_plugin_terrain && $(ALR_CLEAN)
cd orka_plugin_atmosphere && $(ALR_CLEAN)
cd orka_awt && $(ALR_CLEAN)
cd orka_celestial && $(ALR_CLEAN)
cd examples && $(ALR_CLEAN)
cd tests && $(ALR_CLEAN)
rm -rf orka*/build examples/build tests/build orka*/config examples/config tests/config tests/cov