Re: [PATCH 1/3] build: compute subdirectories from the presence of Makefile.local

Subject: Re: [PATCH 1/3] build: compute subdirectories from the presence of Makefile.local

Date: Mon, 24 Mar 2014 23:14:17 -0300

To: notmuch@notmuchmail.org

Cc:

From: David Bremner


David Bremner <david@tethera.net> writes:

> This allows the fragile sed command in configure to be replaced with a somewhat
> less fragile find command.
> -subdirs = compat completion doc emacs lib parse-time-string	\
> -	performance-test util test test/test-databases
> +subdirs = $(dir $(shell find . -mindepth 2 -name Makefile.local))

I discovered a bug with this idea. There is actually an ordering
dependency for the sub Makefiles; in particular the targets of
test/Makefile.local use variables defined in lib/Makefile.local. I'll
have to think if/how this can be salvaged.

d

Thread: