[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: VPATH and Makefiles
From: |
Boris Kolpackov |
Subject: |
Re: VPATH and Makefiles |
Date: |
Wed, 23 Jun 2004 10:20:28 -0500 |
User-agent: |
Mutt/1.5.6i |
David Boyce <address@hidden> writes:
> I've often wished for the equivalent of the Ant "-find" feature to be
> implemented in make. This would simply ask make to work its way up toward
> the root looking for a makefile in each intervening directory and stopping
> when one is found. Basically a recursive version of the current
> makefile-finding algorithm. It would allow you to run make in any subdir of
> a large project tree with only a single Makefile at its base (or e.g. a
> Makefile for each of the 'cmd', 'lib', and 'doc' subtrees), thus removing
> one of the ergonomic problems with single-makefile (non-recursive) build
> models.
This won't scale for builds in split directories (i.e. sources in one
tree, generated code in the other). -C and -f work quite well for me,
e.g.
make -C /tmp/hello-i686-pc-linux-gnu -f ~/hello/makefile
-boris
signature.asc
Description: Digital signature