aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)