[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: paths and included makefiles
From: |
Ross Boylan |
Subject: |
Re: paths and included makefiles |
Date: |
Fri, 3 Sep 2004 16:20:34 -0700 |
User-agent: |
Mutt/1.5.6+20040722i |
On Fri, Sep 03, 2004 at 06:34:40PM -0400, Noel Yap wrote:
> Ross Boylan wrote:
>
> >On Fri, Sep 03, 2004 at 06:11:27PM -0400, Noel Yap wrote:
> >
> >>My current implementation is way too complicated. The gist is something
> >>like:
> >>
> >>include-makefile = $(foreach \
> >> m, \
> >> $(1), \
> >> $(eval $(call _include-makefile,include,$(m),$(__FILE__))))
> >>
> >>define _include-makefile
> >> __FILE__ := $(2)
> >> $(1) $(2)
> >
> >
> >Doesn't that need to be
> > export __FILE__ := $(2)
> >?
>
> Why would it?
>
> Noel
You're right; it's unnecessary. I got confused between including
snippets and invoking Makefiles recursively.