--- a/Makefile Wed Dec 27 12:11:27 2023 +0100
+++ b/Makefile Wed Dec 27 12:50:47 2023 +0100
@@ -19,6 +19,12 @@
clean:
rm -rf build
+ rm -f documents/*.aux
+ rm -f documents/*.log
+ rm -f documents/*.nav
+ rm -f documents/*.out
+ rm -f documents/*.snm
+ rm -f documents/*.toc
run: build/ohp3d
OHP3D_DATA_DIR=. $(<)
@@ -36,3 +42,6 @@
mkdir -p build
$(CXX) -std=c++20 -g -o $(@) $(SRC) $$(pkg-config --cflags --libs \
epoxy x11 glu glm poppler-cpp)
+
+documents/ohp3d.pdf: documents/ohp3d.tex
+ cd documents; pdflatex $(notdir $(<))