diff --git a/Doxyfile b/Doxyfile index 11a9cd1..31248a3 100644 --- a/Doxyfile +++ b/Doxyfile @@ -1,6 +1,10 @@ -PROJECT_NAME = MyProject -PROJECT_NUMBER = 1.0 +PROJECT_NAME = CTree +PROJECT_NUMBER = $(PROJECT_NUMBER) INPUT = src +RECURSIVE = YES +EXTRACT_ALL = YES +INPUT += README.md +USE_MDFILE_AS_MAINPAGE = README.md OUTPUT_DIRECTORY = docs #EXCLUDE = /path/to/exclude/directory diff --git a/Makefile b/Makefile index 1a990a8..861b543 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,8 @@ # Compiler CC := gcc +GITHASH := $(shell git rev-parse --short HEAD) + # Compiler flags CFLAGS := -Wall -Wextra -Wpedantic -std=c2x @@ -44,7 +46,7 @@ clean: rm -rf $(BUILD_DIR) $(TARGET) docs: - doxygen Doxyfile + PROJECT_NUMBER=git-$(GITHASH) doxygen Doxyfile cppcheck: cppcheck --enable=all --inconclusive --std=c11 --language=c --platform=unix64 --suppress=missingIncludeSystem $(SRCS)