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

Re: using conditionals in autoconf/automake



On Wed, May 23, 2001 at 01:06:01PM -0300, Gustavo Noronha Silva wrote:
> I have one more question... I set up new commands for distclean: and
> clean: rules in my Makefile.am like this:
> 
> distclean:
>         rm -f `find . -name \*~`
>         rm -f po/*.gmo
> clean:
>         rm -f `find . -name \*~`
>         rm -f po/*.gmo
> 
> but whenever I run make distclean/clean, I keep receiving messages like
> this:
> 
> Makefile:453: warning: overriding commands for target `distclean'
> Makefile:426: warning: ignoring old commands for target `distclean'

Use distclean-local and clean-local, read the texinfo docs on automake,
section "Extending" (near the bottom).

-- 
Andrew Suffield <asuffield@users.sourceforge.net>
Dept. of Computing, Imperial College, London, UK

Attachment: pgptb2uNpgt63.pgp
Description: PGP signature


Reply to: