aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-09-03 15:18:27 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-09-03 15:18:27 +0200
commit387c97bae8fd2e21dcd5b0a2b938d23e5d007a0d (patch)
tree6248c3b3a39b76bf2bdb1db2712faacefa696dfe
parente8d5e100beeb2159c4b16929135c1ed6a1cdd03a (diff)
add Doxyfile
-rw-r--r--.gitignore1
-rw-r--r--Doxyfile25
-rw-r--r--makefile3
3 files changed, 29 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 69b610c..a3dbd3d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
build
+doxygen
.vscode
.cache
diff --git a/Doxyfile b/Doxyfile
new file mode 100644
index 0000000..08a0b9b
--- /dev/null
+++ b/Doxyfile
@@ -0,0 +1,25 @@
+# Doxyfile 1.11.0
+DOXYFILE_ENCODING = UTF-8
+PROJECT_NAME = "WIP"
+OUTPUT_DIRECTORY = doxygen
+
+INPUT += .
+
+EXCLUDE_PATTERNS = build
+EXCLUDE_SYMLINKS = YES
+EXCLUDE_SYMBOLS = _*
+
+FILE_PATTERNS = *.c *.cpp *.h *.hpp *.md *.dox
+RECURSIVE = YES
+
+GENERATE_LATEX = NO
+
+USE_MDFILE_AS_MAINPAGE = ./readme.md
+HTML_INDEX_NUM_ENTRIES = 1 # collapse trees by default
+REPEAT_BRIEF = NO
+
+INTERNAL_DOCS = YES
+EXTRACT_STATIC = YES
+
+QUIET = YES
+
diff --git a/makefile b/makefile
index 785c186..88af4e6 100644
--- a/makefile
+++ b/makefile
@@ -2,6 +2,9 @@ all: $(TARGET) # TARGET is defined in lazy.mk (build/main)
.PHONY: FORCE
+doxygen: Doxyfile FORCE
+ doxygen
+
FMT += $(shell git ls-files '*.h' '*.c' '*.cpp')
format: FORCE
clang-format -i $(FMT)