diff --git a/pd/src/makefile.in b/pd/src/makefile.in
index 9fc8f38d45fadfed9efc7cefdc6a671a42231aed..88d282b6f2f982a2497136c5649a745d17e7a2e0 100644
--- a/pd/src/makefile.in
+++ b/pd/src/makefile.in
@@ -226,13 +226,17 @@ externs:
 	make -C ../extra/pd~      @EXTERNTARGET@
 	make -C ../extra/stdout   @EXTERNTARGET@
 
-tkpath:
+../tkpath/Makefile: ../tkpath/Makefile.in ../tkpath/configure.in
 	cd ../tkpath && aclocal && autoconf && ./configure --prefix=$(prefix)
+
+tkpath: ../tkpath/Makefile
 	make -C ../tkpath
 	cd ../src
 
-tkdnd:
+../tkdnd/Makefile: ../tkdnd/Makefile.in ../tkdnd/configure.in
 	cd ../tkdnd && aclocal && autoconf && ./configure --prefix=$(prefix)
+
+tkdnd: ../tkdnd/Makefile
 	make -C ../tkdnd
 	cd ../src