help-make
[Top][All Lists]
Advanced

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

Re: Target specified by an empty variable


From: Ralf Wildenhues
Subject: Re: Target specified by an empty variable
Date: Thu, 20 May 2010 18:57:48 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Glenn Morris writes:
> My question really was, will having an "empty" target like this give a
> syntax error with some makes, even if nothing tries to run the
> associated rule?

Yes, some vendor makes will fail, e.g., IRIX make or HP-UX make:

$ cat Makefile
empty =

all:
$(empty): foo

$ make
UX:make: ERROR: make: file `empty' line 4: Syntax error

Cheers,
Ralf




reply via email to

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