diff --git a/Makefile b/Makefile index 5abfd460..3ed09d4c 100644 --- a/Makefile +++ b/Makefile @@ -438,6 +438,13 @@ $(OBJDIR)/%.o : $(SRCDIR)/%.c set -e ;\ depFileName=$(OBJDIR)/$*.d ;\ $(CC) -MM $(CFLAGS) $< -o $${depFileName} $(DEFINE_USE_CJSON_SO) $(DEFINE_USE_LIST_SO) $(DEFINE_USE_MUSTACHE_SO) ;\ + TEST="${MINGW}${MSYS}";\ + [ -z ${TEST} ] || {\ + ls -la obj/oidc-agent > /dev/null ;\ + ls -la `dirname $${depFileName}` > /dev/null;\ + echo "mv -f $${depFileName} $${depFileName}.tmp" ;\ + sleep 2.5;\ + };\ mv -f $${depFileName} $${depFileName}.tmp ;\ sed -e 's|.*:|$@:|' < $${depFileName}.tmp > $${depFileName} ;\ cp -f $${depFileName} $${depFileName}.tmp ;\