--- Makefile.in~	2004-05-07 17:31:55.000000000 +0800
+++ Makefile.in	2004-08-08 15:51:53.233904744 +0800
@@ -374,7 +374,7 @@
 # the configure script output the pkgIndex.tcl by editing configure.in.
 #========================================================================
 
-pkgIndex.tcl:
+pkgIndex.tcl: $($(PACKAGE)_LIB_FILE)
 	( echo package require Tk \; pkg_mkIndex -verbose -load Tk . $($(PACKAGE)_LIB_FILE) \; exit ) | $(TCLSH)
 
 pkgIndex.tcl-hand: