-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
63 lines (48 loc) · 2.2 KB
/
makefile
File metadata and controls
63 lines (48 loc) · 2.2 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
# ======================== General Build Rule ========================
.PHONY: all Exception Hash LinearAlgebra clean
all: Exception Hash LinearAlgebra
# ===================== Exception/CMakeLists.txt =====================
Exception:
mkdir -p build
cmake -S include/LDN/Exception -B build -DCMAKE_INSTALL_PREFIX=/usr
cmake --build build --target package_exception
rm -rf build
doc-Exception:
pdflatex -output-directory=docs/Exception/v1.1 docs/Exception/v1.1/Exception.tex
pdflatex -output-directory=docs/Exception/v1.1 docs/Exception/v1.1/Exception.tex
rm -f docs/Exception/v1.1/Exception.aux docs/Exception/v1.1/Exception.log
rm -f docs/Exception/v1.1/Exception.out docs/Exception/v1.1/Exception.toc
uml-Exception:
plantuml -tpdf docs/Exception/v1.1/Exception_UML.puml
# ======================== Hash/CMakeLists.txt =======================
Hash:
mkdir -p build
cmake -S include/LDN/Hash -B build -DCMAKE_INSTALL_PREFIX=/usr
cmake --build build --target package_hash
rm -rf build
doc-Hash:
pdflatex -output-directory=docs/Hash/v1.0 docs/Hash/v1.0/Hash.tex
pdflatex -output-directory=docs/Hash/v1.0 docs/Hash/v1.0/Hash.tex
rm -f docs/Hash/v1.0/Hash.aux docs/Hash/v1.0/Hash.log
rm -f docs/Hash/v1.0/Hash.out docs/Hash/v1.0/Hash.toc
uml-Hash:
plantuml -tpdf docs/Hash/v1.0/Hash_UML.puml
# ==================== LinearAlgebra/CMakeLists.txt ===================
LinearAlgebra:
mkdir -p build
cmake -S include/LDN/LinearAlgebra -B build -DCMAKE_INSTALL_PREFIX=/usr
cmake --build build --target package_linear_algebra
rm -rf build
doc-LinearAlgebra:
doxygen docs/LinearAlgebra/Doxyfile
perl -0777 -pi -e 's/\\chapter\{Topic Index\}\n\\input\{topics\}\n//s' docs/LinearAlgebra/latex/refman.tex || true
perl -0777 -pi -e 's/\n% Index\s*\n\s*\\backmatter.*?\\printindex\s*//s' docs/LinearAlgebra/latex/refman.tex || true
cp docs/LinearAlgebra/latex/refman.tex docs/LinearAlgebra/v1.0/refman.tex
cd docs/LinearAlgebra/latex && make
mv docs/LinearAlgebra/latex/refman.pdf docs/LinearAlgebra/v1.0/LinearAlgebra.pdf
rm -rf docs/LinearAlgebra/latex
uml-LinearAlgebra:
plantuml -tpdf docs/LinearAlgebra/v1.0/LinearAlgebra_UML.puml
# =================== Clean Rule --- build/lib/temp ==================
clean:
rm -rf build/