[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Clean folders
From: |
Ralf Wildenhues |
Subject: |
Re: Clean folders |
Date: |
Thu, 20 Jan 2005 16:56:33 +0100 |
User-agent: |
Mutt/1.4.1i |
* Leonardo Boiko wrote on Thu, Jan 20, 2005 at 04:21:10PM CET:
> >clean-local:
> > rm -rf .build
>
> I'm having a similar problem. I want to create a convenience .am file
> with rules that many of our packages will use, to be included by
> Makefile.am's. I'm already using neat tricks people talked about on
> earlier discussions, like AC_DEFINING variables to empty so that you can
> += them without problems.
>
> But the included file create a directory in $builddir, and I'd like it
> to be entirely removed in ``make clean''. I can't use CLEANFILES
> because it's a directory, and I can't use ``clean-local'' because it
> could conflict with a possible ``clean-local'' in the Makefile.am.
clean-local-myconv:
-rm -rf whatever
and in the Makefile.am's where you'd like to use it, you put:
clean-local: clean-local-myconv
If you really want to use it everywhere, just put the second line in
your convenience Makefile.am.extra as well.
Regards,
Ralf