Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Oct 1999 14:02:13 -0700 (PDT)
From:      Archie Cobbs <archie@whistle.com>
To:        freebsd-hackers@freebsd.org
Subject:   Make question
Message-ID:  <199910222102.OAA02743@bubba.whistle.com>

next in thread | raw e-mail | index | archive | help
Am I confused or is there a bug in make(1).. ?

Why is 'make foo' failing but 'gmake foo' succeeding?

  $ cat makefile
  foo:
	  var1=yes; test "$$var1" = "no" && var2=". $$var2"; echo OK

  $ make foo
  var1=yes; test "$var1" = "no" && var2=". $var2"; echo OK
  *** Error code 1

  Stop in /root.
  $ gmake foo
  var1=yes; test "$var1" = "no" && var2=". $var2"; echo OK
  OK

This happens on -current and -stable.

-Archie

___________________________________________________________________________
Archie Cobbs   *   Whistle Communications, Inc.  *   http://www.whistle.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199910222102.OAA02743>