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

Proper way of cleaning packages with autotools



On Sun, Feb 12, 2006 at 07:43:43PM -0500, Justin Pryzby wrote:
> On Sun, Feb 12, 2006 at 12:42:26PM -0300, Margarita Manterola wrote:
> > On 2/12/06, Bas Wijnen <shevek@fmf.nl> wrote:
> >     -$(MAKE) maintainer-clean
> >     rm -f config.guess config.sub configure depcomp INSTALL install-sh \
> >         ltmain.sh missing mkinstalldirs config.log aclocal.m4
> >     -find . -name Makefile.in -exec rm {} \;
> Sorry to bring up an old thread;

I hadn't seen it before, but that may be because the subject wasn't very
descriptive (like this time).  I changed it so people ignoring the thread may
read this anyway.

> -$(MAKE) clean is considered bad; see #325372: 'lintian: please add
> check for careless usage of "make clean" and the like'.

Although I don't agree that it's like "swatting a fly with a neutron star", I
can see that it's not really nice. :-)

I changed it, and I also changed the rm -f into a rm $(wildcard ...) (with a
check if that isn't empty).  And I changed -find into find, which it should
have been anyway (since it doesn't fail if it doesn't find anything).

Thanks,
Bas

-- 
I encourage people to send encrypted e-mail (see http://www.gnupg.org).
If you have problems reading my e-mail, use a better reader.
Please send the central message of e-mails as plain text
   in the message body, not as HTML and definitely not as MS Word.
Please do not use the MS Word format for attachments either.
For more information, see http://129.125.47.90/e-mail.html

Attachment: signature.asc
Description: Digital signature


Reply to: