Makefile: Streamline directory creation
authorMichael Hanselmann <hansmi@google.com>
Thu, 28 Oct 2010 15:06:21 +0000 (17:06 +0200)
committerMichael Hanselmann <hansmi@google.com>
Fri, 29 Oct 2010 12:43:04 +0000 (14:43 +0200)
commitc964d962c24b28f7d3ce2fb959fa0dacd84a2585
treed9104031fe331093f34164c799b675bd907a936f
parente986f20c706ca6a5ea71ac89749430626d15c1b8
Makefile: Streamline directory creation

Some directories don't exist in the repository, but are required at build time
(e.g. doc/html). Until now some were created explicitly, some through the
target “stamp-directories” and other target simply relied on a previous target
to create the directory.

This patch tries to clean this up by getting rid of “stamp-directories” and
instead use rules to recreate any missing directory. As described in a comment
in the code, a file inside each directory is necessary, named “.dir”.

Order-only dependencies are used for directory creation to avoid rebuilding
where only the “.dir” file is missing (see “info make”, section “4.3 Types of
Prerequisites”).

The target for building the documentation is also changed to use “…/index.html”
instead of a hidden file. Some style changes are also made.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Reviewed-by: René Nussbaumer <rn@google.com>
.gitignore
Makefile.am