diff options
-rw-r--r-- | Makefile | 2 | ||||
-rwxr-xr-x | build_tools/prep_moduledeps | 5 |
2 files changed, 5 insertions, 2 deletions
@@ -900,6 +900,6 @@ mxml/libmxml.a: makeopts.xml: $(foreach dir,$(MOD_SUBDIRS),$(wildcard $(dir)/*.c) $(wildcard $(dir)/*.cc)) build_tools/cflags.xml sounds/sounds.xml @echo "Generating list of available modules ..." - @build_tools/prep_moduledeps 2>/dev/null > $@ + @build_tools/prep_moduledeps > $@ .PHONY: menuselect sounds clean clean-depend dist-clean distclean all _all depend cleantest uninstall _uninstall uninstall-all dont-optimize valgrind $(SUBDIRS_INSTALL) $(SUBDIRS_CLEAN) $(SUBDIRS_CLEAN_DEPEND) $(SUBDIRS_DEPEND) $(SUBDIRS_UNINSTALL) $(SUBDIRS) diff --git a/build_tools/prep_moduledeps b/build_tools/prep_moduledeps index 3111f5742..76388d50e 100755 --- a/build_tools/prep_moduledeps +++ b/build_tools/prep_moduledeps @@ -33,8 +33,11 @@ process_dir() { displayname=${4} echo -e "\t<category name=\"MENUSELECT_${catsuffix}\" displayname=\"${displayname}\">" - for file in `ls ${dir}/${prefix}*.c ${dir}/${prefix}*.cc | sort` + for file in `ls ${dir}/${prefix}*.c ${dir}/${prefix}*.cc 2> /dev/null | sort` do + if [ ! -f ${file} ]; then + continue + fi fname=`basename ${file} .c` fname=`basename ${fname} .cc` get_description ${file} |