stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Sebor <se...@roguewave.com>
Subject Re: [PATCH] build process fails in TOPDIR if target (lib, etc.) specified (was Re: makefile patch)
Date Sat, 24 Dec 2005 04:58:32 GMT
Liviu Nicoara wrote:
[...]
> Please let me know if you see any more problems with it.
[...]
> +config:
> +	$(MAKE) -C$(INCDIR)
> +

While this might be the right thing to do(*) I think it will become
a problem -- reading in and processing the entire GNUmakefile.cfg
every time make is invoked in either the examples or tests
subdirectories will be prohibitively expensive on slow systems.

(*) If we did decide to go this route, we'd need to do the same
thing for the other dependencies, i.e., the library and, for tests,
the test driver. That will slow things down even more.

>  # rule to make dependencies for C++ source files
> -$(DEPENDDIR)/%.d: %.cpp
> +$(DEPENDDIR)/%.d: %.cpp config

I would try this instead:

   $(DEPENDDIR)/%.d: %.cpp | config

Martin


Mime
View raw message