automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Automake,cygwin: 'make clean' with libtool wrappers...


From: Charles Wilson
Subject: Re: Automake,cygwin: 'make clean' with libtool wrappers...
Date: Fri, 03 May 2002 01:35:53 -0400
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4) Gecko/20011019 Netscape6/6.2

Robert Collins wrote:

What you need to patch is libtool - see mode=clean.


Perhaps -- but that STILL would require automake to be patched. This is ALL that prog.am had for "clean":

clean-%DIR%PROGRAMS:
       -test -z "$(%DIR%_PROGRAMS)" || rm -f $(%DIR%_PROGRAMS)

That's it.  No special

?LIBTOOL? $(LIBTOOL) --mode=clean $(%DIR%_PROGRAMS)

or anything. Automake-generated Makefile.in's do not use --mode=clean at this time.

However, I DID think about doing that ^^^. Unfortunately, libtool --mode=clean doesn't work with executables and wrapper scripts and the .libs/ subdirectory; although it may work okay when cleaning up libraries. I think that --mode=clean is very underused and undertested. AND the code is an impenatrable mass of &address@hidden@.

Since automake hasn't made any previous gestures in the direction of 'libtool --mode=clean', I figured why start now...this patch to automake WORKS, allows users to do a "make clean" (dist-clean, etc) and actually get a CLEAN directory.

I'll mention on the libtool list that --mode=clean needs fixing, but until then using this block of code in progs.am until it can be replaced by the line above seems like a decent way to go, to me...

--Chuck




reply via email to

[Prev in Thread] Current Thread [Next in Thread]