delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/03/21/12:54:10

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <00d901bf935f$5d406260$6e01a8c0@webango.com>
From: "Mohan Krishnan" <mohan AT webango DOT com>
To: <cygwin AT sourceware DOT cygnus DOT com>
Subject: command line length problem
Date: Tue, 21 Mar 2000 10:00:38 -0800
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600

Hi all:
I hv a makefile on NT with a rule which has a large no. of dependencies and
I am using make.exe which came with cygwin b20.1. I found that make is not
able to handle long command lines. I saw a lot of messages posted in the
cygwin mailing list regarding this problem but no solutions for it. The same
makefile works fine on Unix.
Then I got the source code for make from gnu and built it myself using gcc.
This exe is able to handle long command lines but does not compare
timestamps when executing a rule. It just looks for the presence of the
target. i.e. if target is present then it executes the command otherwise it
does not (even if dependencies have changed)
If you have any solution or if you have a make.exe which can handle long
command lines (and compare timestamps! :)) pl. send it to me.

Here's the rule in my makefile:

dummyfile : *.java
    echo $? > file
    javac @file
    touch dummyfile


I tried the option of using xargs, but it cannot be used here because the $?
expands to a large list and when make launches sh.exe to execute the command
line it throws a STATUS_ACCESS_VIOLATION.
Thing to note here is that the problem is not with sh.exe as the make.exe
that I build using gnu source had no problem


thanks,
mohan


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019