This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
command line length problem
- To: <cygwin at sourceware dot cygnus dot com>
- Subject: command line length problem
- From: "Mohan Krishnan" <mohan at webango dot com>
- Date: Tue, 21 Mar 2000 10:00:38 -0800
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@sourceware.cygnus.com