docs fix generation for libs
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m44s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m44s
This commit is contained in:
17
make/lib.mk
17
make/lib.mk
@@ -10,6 +10,16 @@ include ../$(platform)/flags.mk
|
||||
|
||||
FORMAT ?= clang-format -i $$(git ls-files '*.c' '*.h')
|
||||
|
||||
DOCS_COLLECT ?= $$(git ls-files '*.c' '*.h')
|
||||
|
||||
DOCS ?= \
|
||||
rm -rf docs; \
|
||||
clang-doc --format=md --output docs -p . $(DOCS_COLLECT); \
|
||||
for f in ./docs/GlobalNamespace/*.md; do sed -i '/^\# Global Namespace/d' "$$f"; done; \
|
||||
rm -rf ../docs/libs/$(libname); \
|
||||
mkdir -p ../docs/libs/$(libname); \
|
||||
cp ./docs/GlobalNamespace/*.md ../docs/libs/$(libname);
|
||||
|
||||
all: build/$(libname).a
|
||||
|
||||
build/$(libname).a: $(o)
|
||||
@@ -28,11 +38,6 @@ format:
|
||||
$(FORMAT)
|
||||
|
||||
docs:
|
||||
rm -rf docs
|
||||
clang-doc --format=md --output docs -p . $$(git ls-files '*.h')
|
||||
for f in ./docs/GlobalNamespace/*.md; do sed -i '/^# Global Namespace/d' "$$f"; done
|
||||
rm -rf ../docs/libs/$(libname)
|
||||
mkdir -p ../docs/libs/$(libname)
|
||||
cp ./docs/GlobalNamespace/*.md ../docs/libs/$(libname)
|
||||
$(DOCS)
|
||||
|
||||
.PHONY: all clean format
|
||||
|
||||
Reference in New Issue
Block a user