Cygwin make thinks a statement can be neither true nor false....
Robb, Sam
sam.robb@timesys.com
Mon Apr 19 18:14:00 GMT 2004
Dave,
"error:" != "error". You want to use the following
syntax:
$(error 1 ANYTHING is defined )
Possibly a bug in make, as I'd expect it to complain
about an undefined function named "error:". Similar
constructs are also silently ignored:
$(foo This isn't a valid make function)
$(bar Neither is this)
-Samrobb
> -----Original Message-----
> From: Dave Korn [mailto:dk@artimi.com]
> Sent: Monday, April 19, 2004 1:53 PM
> To: cygwin@cygwin.com
> Subject: Cygwin make thinks a statement can be neither true nor
> false....
>
>
>
> Haven't got any time to investigate further tonight, and
> I'm not sure if
> this is a real bug or some misunderstanding of mine, but it
> doesn't appear
> to be how the documentation ("info make") suggests things should work.
> Here's a cut-down testcase:
>
> -------------snip-------------
> dk@mace /test/mk-test/test2> ls -lart
> total 1
> drwxr-xr-x+ 4 dk Domain U 0 Apr 19 18:47 ..
> -rw-r--r-- 1 dk Domain U 402 Apr 19 18:49 makefile
> drwxr-xr-x+ 2 dk Domain U 0 Apr 19 18:49 .
> dk@mace /test/mk-test/test2> cat makefile
>
> ifdef ANYTHING
> $(error: 1 ANYTHING is defined )
> endif
> ifndef ANYTHING
> $(error: 1 ANYTHING is ***NOT*** defined )
> endif
>
> $(error: PLEASE give me an error. What do I have to do, for
> god's sake?
> Beg? )
>
> $(warning: How about an error, or is even that asking too much of your
> mighty in
> tellect? )
>
> .PHONY: all force
> all: force
>
> force:
> echo Does make not use aristotelian two-valued logic
> then? > force
>
> dk@mace /test/mk-test/test2>
> dk@mace /test/mk-test/test2> make
> echo Does make not use aristotelian two-valued logic then? > force
> dk@mace /test/mk-test/test2>
> -------------snip-------------
>
> Now, shouldn't at least one of those error messages be
> displayed? Or have
> I failed to understand that they don't get parsed because they're not
> required to make sense of the targets and dependencies?
>
>
>
> cheers,
> DaveK
> --
> Can't think of a witty .sigline today....
>
>
> --
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
> Problem reports: http://cygwin.com/problems.html
> Documentation: http://cygwin.com/docs.html
> FAQ: http://cygwin.com/faq/
>
>
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list