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: Russ Allbery
Subject: Re: Nonrecursive Makefile.am: Ensuring directory creation?
Date: Tue, 11 Aug 2009 13:10:27 -0700
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux)

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])

-- 
Russ Allbery (address@hidden)             <http://www.eyrie.org/~eagle/>




reply via email to

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