docs fix makefile shell expansions
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m31s

This commit is contained in:
2026-03-15 22:41:42 +01:00
parent 60c44f2939
commit 08cdf73c41
3 changed files with 4 additions and 4 deletions

View File

@@ -5,7 +5,7 @@ $(eval $(call add_include,libstring))
cflags += -D"FAT_PRINTF(a)"
DOCS_COLLECT = $(git ls-files '*.c' '*.h' ':!_fat.*' ':!_fatctx.h')
DOCS_COLLECT = $$(git ls-files '*.c' '*.h' ':!_fat.*' ':!_fatctx.h')
libname := libfat

View File

@@ -52,8 +52,6 @@ static int _acquire_lock (MLOCK_T* lock) { return mutex_lock (*lock); }
static int _release_lock (MLOCK_T* lock) { return mutex_unlock (*lock); }
static int _try_lock (MLOCK_T* lock) { return mutex_try (*lock); }
#define INITIAL_LOCK(lk) _init_lock ((lk))
#define DESTROY_LOCK(lk) _fini_lock ((lk))

View File

@@ -15,7 +15,9 @@ 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; \
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);