automake
[Top][All Lists]
Advanced

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

Re: Nonrecursive Makefile.am: Ensuring directory creation?


From: Jack Kelly
Subject: Re: Nonrecursive Makefile.am: Ensuring directory creation?
Date: Wed, 12 Aug 2009 07:31:47 +1000

On Wed, Aug 12, 2009 at 6:10 AM, Russ Allbery<address@hidden> wrote:
> Ralf Wildenhues <address@hidden> writes:
>
>> Unfortunately, Automake doesn't yet provide a good API for directory
>> stamping yet.  You can easily use your own though, that don't interfere
>> with automake's stamps and rules:
>>
>>   subdir/generated-file: subdir/my-dirstamp
>>         commands ...
>>   subdir/my-dirstamp:
>>         @$(MKDIR_P) subdir
>>         @: > $@
>>   DISTCLEANFILES += subdir/my-dirstamp
>
> A possibly simpler way, depending on what you're trying to accomplish, is
> to do this at configure time:
>
> AC_CONFIG_COMMANDS([tests/data/.placeholder], [touch tests/data/.placeholder])

I think that in my case, getting configure to do this for me looks
like the most sensible approach, since the *clean targets won't remove
directories.

Thanks Ralf and Russ.

-- Jack




reply via email to

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