groff
[Top][All Lists]
Advanced

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

Re: [Groff] deletion of *~ files for `make mostlyclean'


From: Werner LEMBERG
Subject: Re: [Groff] deletion of *~ files for `make mostlyclean'
Date: Fri, 14 May 2004 20:23:52 +0200 (CEST)

> >  mostlyclean:
> > +       -rm -f $(find -type f -name '*~')
> 
> Are you sure?  Surely make will try to expand the $(find ...)
> as a makefile variable substitution, and most likely substitute
> nothing, (or have I missed some obscure feature of GNU make?).
> 
> The portable way to do this is surely
> 
>         -find -type f -name '*~' -exec rm -f {} \;

Or this:

  -rm -f `find -type f -name '*~'`

I rather think it would be better to add this to the `extraclean'
target which already has some rudimentary delete patterns.


    Werner


reply via email to

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