fix for infinitely looping windows gmake depend builds, code from cls, r=leaf, a=roc

This commit is contained in:
leaf%mozilla.org 2002-02-21 00:15:10 +00:00
parent 4f99429abb
commit d3bd643b18

View File

@ -1492,7 +1492,7 @@ ifndef MOZ_AUTO_DEPS
define MAKE_DEPS_NOAUTO
set -e ; \
touch $@ && \
$(MKDEPEND) -o'.$(OBJ_SUFFIX)' -f$@ $(DEFINES) $(ACDEFINES) $(INCLUDES) $< >/dev/null 2>&1 && \
$(MKDEPEND) -w1024 -o'.$(OBJ_SUFFIX)' -f$@ $(DEFINES) $(ACDEFINES) $(INCLUDES) $< >/dev/null 2>&1 && \
mv $@ $@.old && cat $@.old | sed "s|^$(<D)/||g" > $@ && rm -f $@.old
endef