Index: Makefile.in
==================================================================
--- Makefile.in
+++ Makefile.in
@@ -158,11 +158,11 @@
 # compiled with.
 #DEFS		= $(TCL_DEFS) @DEFS@ $(PKG_CFLAGS)
 DEFS		= @DEFS@ $(PKG_CFLAGS)
 
 # Move pkgIndex.tcl to 'BINARIES' var if it is generated in the Makefile
-CONFIG_CLEAN_FILES = Makefile
+CONFIG_CLEAN_FILES = Makefile pkgIndex.tcl tlsUuid.h
 CLEANFILES	= @CLEANFILES@
 
 CPPFLAGS	= @CPPFLAGS@
 LIBS		= @PKG_LIBS@ @LIBS@
 AR		= @AR@
@@ -328,21 +328,20 @@
 tls.tcl.h: library/tls.tcl
 	sed -e '/^\\s*\#/d' -e '/^\\s*$$/d' -e 's/\\/\\\\/g' -e 's/\"/\\"/g' -e 's/^/"/' \
 	    -e 's/$$/\\n\"/' '$?' > '$@' || { rm -f $@; exit 1; }
 
 # Create header file with fossil, git, or svn UUID for build-info command 
-manifest.uuid:
-	@echo "Make manifest.uuid"
-	printf "git-" >manifest.uuid
-	(git rev-parse HEAD >>manifest.uuid || \
-	    (printf "svn-r" >manifest.uuid ; \
-	    svn info --show-item last-changed-revision >>manifest.uuid) || \
-	    printf "unknown" >manifest.uuid)
-
-tlsUuid.h:	manifest.uuid
+$(srcdir)/manifest.uuid:
+	printf "git-" >$(srcdir)/manifest.uuid
+	(cd $(srcdir); git rev-parse HEAD >>$(srcdir)/manifest.uuid || \
+	    (printf "svn-r" >$(srcdir)/manifest.uuid ; \
+	    svn info --show-item last-changed-revision >>$(srcdir)/manifest.uuid) || \
+	    printf "unknown" >$(srcdir)/manifest.uuid)
+
+tlsUuid.h:	$(srcdir)/manifest.uuid
 	echo "#define TLS_VERSION_UUID \\" >$@
-	cat manifest.uuid >>$@
+	cat $(srcdir)/manifest.uuid >>$@
 	echo "" >>$@
 
 #========================================================================
 # We need to enumerate the list of .c to .o lines here.
 #
@@ -371,11 +370,11 @@
 # you may find that you need to customize the package.  If so, either
 # modify the -hand version, or create a pkgIndex.tcl.in file and have
 # the configure script output the pkgIndex.tcl by editing configure.in.
 #========================================================================
 
-pkgIndex.tcl: pkgIndex.tcl.in
+pkgIndex.tcl: $(srcdir)/pkgIndex.tcl.in
 	cd $(top_builddir) \
 	  && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
 
 #========================================================================
 # Distribution creation