From 76f4927af3008ebaaaf7d8764e6818e0d9cb2fa1 Mon Sep 17 00:00:00 2001
From: Mathieu L Bouchard <matju@artengine.ca>
Date: Mon, 11 Aug 2014 16:09:51 -0400
Subject: [PATCH] only reconf tkpath or tkdnd when makefile is outdated

---
 pd/src/makefile.in | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/pd/src/makefile.in b/pd/src/makefile.in
index 9fc8f38d4..88d282b6f 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
 
-- 
GitLab