On Thu, Dec 4, 2008 at 2:04 PM, Garrett Cooper <[EMAIL PROTECTED]> wrote:
> On Thu, Dec 4, 2008 at 11:55 AM, Sam Ravnborg <[EMAIL PROTECTED]> wrote:
>> On Wed, Dec 03, 2008 at 06:20:29PM -0800, Garrett Cooper 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.
>>
>> I have with success used:
>> MAKEFLAGS += --include-dir=foo
>>
>> This works only for the submake you spawn from the Makefile
>> that contains the assignment.
>>
>>        Sam
>
> Ah, yes! That variable. That will do nicely.
> Thanks!
> -Garrett

Should have worked, but it didn't. I even tried override, but that
failed too :\:

[EMAIL PROTECTED] pciutils-3.0.3]$ make
NOVA_WORKSPACE=/scratch/hoover -f Makefile.nova
Makefile.nova:3: nova-binos-compat.mk: No such file or directory
make-3.81: *** No rule to make target `nova-binos-compat.mk'.  Stop.
[EMAIL PROTECTED] pciutils-3.0.3]$ cat Makefile.nova
override MAKEFLAGS      += --include=$(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\" \
        $@

Ideas?
-Garrett


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to