help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Equivalent to VPATH for searching for Makefiles?


From: Garrett Cooper
Subject: Re: Equivalent to VPATH for searching for Makefiles?
Date: Wed, 3 Dec 2008 23:38:42 -0800

On Wed, Dec 3, 2008 at 6:22 PM, Garrett Cooper <address@hidden> wrote:
> On Wed, Dec 3, 2008 at 6:20 PM, Garrett Cooper <address@hidden> wrote:
>> Hi guys,
>>     I realize that using --include can do this, but is there a way to
>> tell make how to do this for Makefiles as well from within other
>> Makefiles (VPATH doesn't work ;P)? It would be a really cool
>> enhancement to have, if it doesn't already exist, as it would make
>> ginormous make projects simpler by setting a default `search path' for
>> Makefiles that get included.
>> -Garrett
>
>    Nevermind ><. vpath (all lowercase) would have done the trick.
> -Garrett

Poo... this apparently doesn't support %.mk; tips?

Output:

address@hidden pciutils-3.0.3]$ make -f Makefile.nova
Makefile.nova:5: nova-binos-compat.mk: No such file or directory
make-3.81: *** No rule to make target `nova-binos-compat.mk'.  Stop.

Makefile.nova:

NOVA_WORKSPACE  := /scratch/garrcoop/hoover

vpath %.mk $(NOVA_WORKSPACE)/build/make-lib/

include nova-binos-compat.mk

all clean install:
        $(MAKE) \
        CROSS_COMPILE=\"$(CROSS_COMPILE)\" \
        HOST=\"$(TARGET)-unknown-linux\" \
        CFLAGS=\"-isystem -I$(NOVA_INSTALL_BASE)/usr/include\" \
        LDFLAGS=\"-L$(NOVA_INSTALL_BASE)/usr/lib -lc -lzlib\" \
        $@




reply via email to

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