help-make
[Top][All Lists]
Advanced

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

Re: trying to emulate "include"


From: wim delvaux
Subject: Re: trying to emulate "include"
Date: Wed, 10 Dec 2003 17:56:50 +0100
User-agent: KMail/1.5.4

I do not understand what you want to acchieve.

-include X

        X is optional

include X

        X MUST be present -> else error

so why the wildcard if 'include' without - does the same ???

W


On Wednesday 10 December 2003 17:02, Mike Gibson wrote:
> On Wednesday 10 December 2003 07:22 am, Noel Yap wrote:
> > I'm trying to emulate "include" with the following:
> >
> > aoeu.mk:
> >     touch $@
>
> This rule won't be executed until the makefile is completely parsed.
>
> > -include aoeu.mk
> >
> > ifeq ($(wildcard aoeu.mk),)
> >   $(error aoeu.mk: No such file or directory)
> > endif
>
> This part gets executed as the makefile is being parsed.
>
> So the rule never has a chance to fire since the ifeq gets parsed first.
>
> > ----------------------------------------------------
> > but it's the error gets emitted all the time.  Is there a way to do what
> > I want?
> >
> > I'm starting to think I'm going to need the "re-exec count" feature in
> > order to do this.
> >
> > Thanks,
> > Noel
>
> _______________________________________________
> Help-make mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/help-make





reply via email to

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