pkgIndex.tcl is removed in "make clean"
Closed / Invalid1500979fffffffffffffffffffffffffffffffffCreated 20 years agoUpdated 20 years ago
Descriptionplain2006-06-05 13:25:49
In my extensions based on sampleextension's TEA 3.5, make clean removes pkgIndex.tcl, which is however not rebuilt by a make, but by configure (from pkgIndex.tcl.in). As a result, make clean causes trouble in a subsequent make. I can't see how to work around this, the CLEANFILES variable in the Makefile is set up by configure. I suppose configure should not add pkgIndex.tcl to the CLEANFILES list if it sees a pkgIndex.tcl.in Maybe related: I've had trouble building a variant by creating a new dir, then doing "cd newdir; /path/to/orig/configure; make". The make does nothing if there are build results in the original area. Doing a "make clean" in the original area is enough to make the variant build normally. Which is what brought up that first issue ... (I try to avoid make distclean to be able to keep the configure settings) -jcw
dkf Ticket [1500979fff]: 1 change
[History diff]2006-06-05 21:16:48
jcwplain2006-06-11 06:49:30
Logged In: YES user_id=1983 The make-not-making problem can be solved by changing: VPATH = $(srcdir):$(srcdir)/generic:$(srcdir)/unix:$(srcdir)/win to VPATH = $(srcdir)/generic:$(srcdir)/unix:$(srcdir)/win Have not looked at how to solve pkgIndex.tcl rebuild yet.
jcwplain2006-06-11 07:40:32
Logged In: YES user_id=1983 Hm, that didn't work. Watch: (Makefile.in contains the original line) From the main dir itself, Makefile ends up with (GOOD!): VPATH = $(srcdir)/generic:$(srcdir)/unix:$(srcdir)/win From another dir, that same Makefile.in produces this (BAD!): VPATH = $(srcdir):$(srcdir)/generic:$(srcdir)/unix:$(srcdir)/win Ok, so maybe configure wants to include the top always, and drops it explicitly when already in the top? When I change Makefile.in to: VPATH = $(srcdir)/generic:$(srcdir)/unix:$(srcdir)/win The in the orig dir, this ends up in Makefile (BAD!): VPATH = /generic:$(srcdir)/unix:$(srcdir)/win In another dir, it produces (GOOD!): VPATH = $(srcdir)/generic:$(srcdir)/unix:$(srcdir)/win Looks like ya just can win with the current autoconf/makefile logic. I've changed it as follows in Makefile.in for now: VPATH = $(srcdir)/generic:$(srcdir)/generic:$(srcdir)/unix:$(srcdir)/win With that double entry, I get this Makefile in the orig dir: VPATH = /generic:$(srcdir)/generic:$(srcdir)/unix:$(srcdir)/win And this Makefile elsewhere: VPATH = $(srcdir)/generic:$(srcdir)/generic:$(srcdir)/unix:$(srcdir)/win Clearly a hack, but it works for me.
dgp Ticket [1500979fff]: 1 change
[History diff]2006-06-12 10:15:46
mic42plain2006-08-02 15:13:21
Logged In: YES user_id=302287 Duplicated in Bug #1517839.
hobbsplain2007-02-09 08:08:05
Logged In: YES user_id=72656 Originator: NO The extension writer should modify CLEANFILES setting in configure.in depending on whether pkgIndex.tcl.in is used or it is hand-rolled in the Makefile.
sf-robotplain2007-02-23 10:20:10
Logged In: YES user_id=1312539 Originator: NO This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker).
Log in (anonymous is fine) to add a comment.