Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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" To: Subject: command line length problem Date: Tue, 21 Mar 2000 10:00:38 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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