diff --git a/tools/makesrc.inc b/tools/makesrc.inc index 78d97f3283..837a812d51 100644 --- a/tools/makesrc.inc +++ b/tools/makesrc.inc @@ -8,7 +8,11 @@ # # The weird grep -v thing in here is due to Apple's stupidities and is needed # to make this do right when used on Mac OS X. +# +# The usage of ls is only to make sure that we only output existing file names +# to not confuse make and to produce a fairly decent error message to the +# terminal. SRC := $(shell cat SOURCES | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) \ $(TARGET) $(DEFINES) $(EXTRA_DEFINES) -E -P -include "config.h" - | \ -grep -v "^\#") +grep -v "^\#" | xargs ls)