Makefile: Fixed rule for building makedep when cross-compiling.
diff --git a/Makefile.in b/Makefile.in
index b94782f..4bbcc44 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -117,7 +117,7 @@
 depend $(RECURSE_TARGETS): $(MAKEDEP)
 
 $(MAKEDEP):
-	@cd $(TOOLSDIR)/tools && $(MAKE) makedep$(EXEEXT)
+	@cd $(TOOLSDIR)/tools && $(MAKE) makedep
 
 # Test rules
 
diff --git a/tools/Makefile.in b/tools/Makefile.in
index 14ded8a..aa69d97 100644
--- a/tools/Makefile.in
+++ b/tools/Makefile.in
@@ -54,7 +54,7 @@
 
 @MAKE_RULES@
 
-makedep$(EXEEXT): makedep.o
+makedep$(EXEEXT) $(EXEEXT:%=makedep): makedep.o
 	$(CC) $(CFLAGS) -o $@ makedep.o $(LDFLAGS)
 
 make_ctests$(EXEEXT): make_ctests.o