projects-dir.mk: Make list-files ignore errors

Make list-files target ignore errors. This catches errors from
git ls-files | xargs realpath if git ls-files lists dead symbolic
links, as in my-project/blah/dev/fd -> ./proc/self/fd.

Implemented by passing -q (quiet) to realpath, not sure what else
this suppresses.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2025-11-17 12:34:14 +01:00
commit 36092d6b1b

View file

@ -204,7 +204,7 @@ list-files:
@realpath PROJECTS_MAKEFILE_NAME @realpath PROJECTS_MAKEFILE_NAME
@for p in $(BUILD_PROJECTS); do \ @for p in $(BUILD_PROJECTS); do \
$(LIST_VCS_FILES_SH) -znf $$p | sed -z "s/^/$$p\//" | \ $(LIST_VCS_FILES_SH) -znf $$p | sed -z "s/^/$$p\//" | \
xargs -0 realpath ;\ xargs -0 realpath -q ;\
done done
$(TEXT_FILES_CACHE): $(TEXT_FILES_CACHE):
@make -s text-files-update @make -s text-files-update