Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Wed, 20 Jul 2005 23:45:48 -0400
From: Christopher Faylor <cgf-no-personal-reply-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: make 3.80 bug - running a program inside make
Message-ID: <20050721034548.GA25539@trixie.casa.cgf.cx>
Reply-To: cygwin@cygwin.com
References: <6.2.3.4.0.20050720202749.032054b8@localhost>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <6.2.3.4.0.20050720202749.032054b8@localhost>
User-Agent: Mutt/1.5.8i

On Wed, Jul 20, 2005 at 08:39:22PM -0700, turbo wrote:
>I have some makefiles that fail to work correctly.
>They worked about 6 months ago with cygwin.
>They work fine on mandrake 10.2.
>
>Here is the first makefile problem:
>In this makefile I run a program, i.e.
>
>test_calls: ${BIN}calls
>	rm -f calls.out
>	pwd
>	${BIN}calls calls.in > calls.out
>	diff calls.out calls.gout
>
>
>The output I get is
>rm -f calls.out
>pwd
>/cygdrive/u/j/jeff-util/test
>/cygdrive/u/j/bin/calls calls.in > calls.out
>The system cannot find the path specified.
>make: *** [test_calls] Error 1
>
>I added the pwd line to make sure the directory exists.
>When I remove the "> calls.out" in the makefile, the program runs, and
>output is directed to standard output.
>
>
>Here is the second makefile problem:
>
>the_test:	test.o test_nr.o test_subrs.o jefflib
>		g++ ${LDFLAGS} test.o test_nr.o test_subrs.o jefflib -lm -o 
>		the_test
>		@echo running the tests
>		./the_test > the_test.lo 2> the_test.er
>#		the_test.exe > the_test.lo 2> the_test.er
>		-diff the_test.log the_test.lo
>		-diff the_test.erg the_test.er
>
>The output I get in the_test.er is:
>'.' is not recognized as an internal or external command,
>operable program or batch file.

Judging by the error messages, it sounds like you have the "MAKE_MODE"
environment variable set.

If that is the case, you should unset it.

cgf

--
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/

