| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| content-class: | urn:content-classes:message |
| MIME-Version: | 1.0 |
| Subject: | RE: Cygwin make thinks a statement can be neither true nor false.... |
| Date: | Mon, 19 Apr 2004 13:56:53 -0400 |
| Message-ID: | <3D848382FB72E249812901444C6BDB1DE4E085@exchange.timesys.com> |
| X-MS-Has-Attach: | |
| X-MS-TNEF-Correlator: | |
| From: | "Robb, Sam" <sam DOT robb AT timesys DOT com> |
| To: | <cygwin AT cygwin DOT com> |
| X-IsSubscribed: | yes |
| X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id i3JI7Gxd015464 |
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 AT artimi DOT com]
> Sent: Monday, April 19, 2004 1:53 PM
> To: cygwin AT cygwin DOT 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 AT 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 AT 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 AT mace /test/mk-test/test2>
> dk AT mace /test/mk-test/test2> make
> echo Does make not use aristotelian two-valued logic then? > force
> dk AT 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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |