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
> [EMAIL PROTECTED]
> http://mail.gnu.org/mailman/listinfo/help-make



_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make

Reply via email to