On Wed, Aug 12, 2009 at 6:10 AM, Russ Allbery<r...@stanford.edu> wrote:
> Ralf Wildenhues <ralf.wildenh...@gmx.de> 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