# HACK Don't give make errors when switching between trunk and branches.
# Works by finding the .deps/*.Po files which refer to source files that don't exist, and replacing them with a single dependency on the correct source file.
# Now with PD-ksh support.
fixbrokendependencies:
mkdir -p ".deps";for ext in c cpp ;dofor a in `cd$(srcdir);echo *.$$ext`;dofpref="`echo "$$a" | sed "s/\.$$ext//"`";pofile=".deps/$$fpref.Po";srcfile="$(srcdir)/$$a";if[ -e "$$srcfile"]&& ! grep -q "\b$$a\b""$$pofile" 2> /dev/null ;thenecho"$$fpref.o: $$srcfile"| tee "$$pofile";fi;done;done