Make & doxyfile

This commit is contained in:
Imbus 2024-05-05 14:56:23 +02:00
parent 58e31c99a7
commit 2bdd100b04
2 changed files with 9 additions and 3 deletions

View file

@ -1,6 +1,10 @@
PROJECT_NAME = MyProject PROJECT_NAME = CTree
PROJECT_NUMBER = 1.0 PROJECT_NUMBER = $(PROJECT_NUMBER)
INPUT = src INPUT = src
RECURSIVE = YES
EXTRACT_ALL = YES
INPUT += README.md
USE_MDFILE_AS_MAINPAGE = README.md
OUTPUT_DIRECTORY = docs OUTPUT_DIRECTORY = docs
#EXCLUDE = /path/to/exclude/directory #EXCLUDE = /path/to/exclude/directory

View file

@ -1,6 +1,8 @@
# Compiler # Compiler
CC := gcc CC := gcc
GITHASH := $(shell git rev-parse --short HEAD)
# Compiler flags # Compiler flags
CFLAGS := -Wall -Wextra -Wpedantic -std=c2x CFLAGS := -Wall -Wextra -Wpedantic -std=c2x
@ -44,7 +46,7 @@ clean:
rm -rf $(BUILD_DIR) $(TARGET) rm -rf $(BUILD_DIR) $(TARGET)
docs: docs:
doxygen Doxyfile PROJECT_NUMBER=git-$(GITHASH) doxygen Doxyfile
cppcheck: cppcheck:
cppcheck --enable=all --inconclusive --std=c11 --language=c --platform=unix64 --suppress=missingIncludeSystem $(SRCS) cppcheck --enable=all --inconclusive --std=c11 --language=c --platform=unix64 --suppress=missingIncludeSystem $(SRCS)