build: doxygen generate docs

This commit is contained in:
Daniil Zhukov 2024-07-09 02:17:20 +02:00 committed by sha512sum
parent 42a20bcc41
commit c513d24565
2 changed files with 2876 additions and 2 deletions

View file

@ -1,5 +1,10 @@
VERSION = $(shell git describe --tags --always --long)
MAKEFILE_DIR = $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST)))) MAKEFILE_DIR = $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
TESTS_BIN = $(MAKEFILE_DIR)/build/cserver_tests BUILD_DIR = $(MAKEFILE_DIR)/build
TESTS_BIN = $(BUILD_DIR)/cserver_tests
DOXYGEN ?= doxygen
CC = clang CC = clang
CXX = clang++ CXX = clang++
@ -75,6 +80,13 @@ tidy: build/.ran-cmake
$(shell find examples -name *.cpp) \ $(shell find examples -name *.cpp) \
$(shell find tests -name *.cpp) $(shell find tests -name *.cpp)
docs:
@( \
cat docs/doxygen.conf; \
echo PROJECT_NUMBER=$(VERSION); \
echo OUTPUT_DIRECTORY=$(BUILD_DIR)/docs \
) | $(DOXYGEN) -
FORCE: ; FORCE: ;
.PHONY: all cmake test format clean distclean .PHONY: all cmake format test tidy docs clean distclean

2862
docs/doxygen.conf Normal file

File diff suppressed because it is too large Load diff