[Top][All Lists]

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

Re: trying to emulate "include"

From: Mike Gibson
Subject: Re: trying to emulate "include"
Date: Wed, 10 Dec 2003 09:02:40 -0700
User-agent: KMail/1.5.1

On Wednesday 10 December 2003 07:22 am, Noel Yap wrote:
> I'm trying to emulate "include" with the following:
>       touch $@

This rule won't be executed until the makefile is completely parsed.

> -include
> ifeq ($(wildcard,)
>   $(error 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

reply via email to

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