Paul D. Smith writes:
> From: "Paul D. Smith" <[EMAIL PROTECTED]>
> To: "Albert L. Ting" <[EMAIL PROTECTED]>
> Cc: [EMAIL PROTECTED]
> Subject: Re: ifdef problem
> Date: Tue, 13 Jun 2000 13:03:08 -0400 (EDT)
>
> %% "Albert L. Ting" <[EMAIL PROTECTED]> writes:
>
> alt> This may not necessarily
%% "Albert L. Ting" <[EMAIL PROTECTED]> writes:
alt> This may not necessarily a bug but rather a missing/inconsistent
alt> feature in make. I need a method to detect if a variable was
alt> defined, and it's ok if the definition was set to blank.
ifeq ($(origin FOO),undefined)
$(error FO
This may not necessarily a bug but rather a missing/inconsistent feature in
make. I need a method to detect if a variable was defined, and it's ok if
the definition was set to blank.
So something like below should work. But if the first line was missing, it
should complain.
FOO :=
%% Gianni Mariani <[EMAIL PROTECTED]> writes:
gm> Let me clarify this better - I'd like to have one generic Makefile
gm> fo a huge source tree. I only want the work directory created in
gm> directories where it makes sense. I want to keep that complexity
gm> away from the developer - or