[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: DISTCLEANFILES with SUBDIR directories
From: |
Ralf Wildenhues |
Subject: |
Re: DISTCLEANFILES with SUBDIR directories |
Date: |
Mon, 10 Nov 2008 08:13:37 +0100 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
Hi Brendon,
* Brendon Costa wrote on Mon, Nov 10, 2008 at 01:54:50AM CET:
>
> I have a project using automake and I want to ensure that the distclean
> target removes a directory that is listed conditionally in the SUBDIRS
> variable. Is this possible to do this without the distclean target being
> performed recursively inside the sub directory first?
>
> My Makefile.am has:
> SUBDIRS = $(subdirs)
>
> distclean-local:
> rm -rf gcc-4.0.4
I suppose you can try adding
DIST_SUBDIRS = . $(subdirs)
but probably you will have to make the latter $(subdirs_without_gcc)
and then take care that 'make dist' is handled correctly, by writing
a suitable dist-local rule or so (untested).
Hope that helps.
Cheers,
Ralf