bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GNU Make 3.82


From: Eli Zaretskii
Subject: Re: GNU Make 3.82
Date: Wed, 20 Sep 2017 22:42:02 +0300

> From: Paul Smith <address@hidden>
> Date: Wed, 20 Sep 2017 12:56:58 -0400
> Cc: address@hidden
> 
> On Wed, 2017-09-20 at 22:50 +0700, Vladimir Vlad wrote:
> > Hello!  I'm using GNU Make 3.82
> > Built for i686-pc-mingw32 on Windows 7. I have a question about the
> > behavior of this program. How does GNU make decide if it runs a line
> > from a rule directly or via a batch file? I need a line to always be
> > executed directly (through the CreateProcess(...)). How can I do that?
> > I noticed that: "./fpmake.exe install --localunitdir=.. --
> > globalunitdir=../packages --os=win32 --cpu=i386 -o -Ur -o -Xs -o -O2
> > -o -n -o -di386 -o -dRELEASE --compiler=c:/temp/lazarusbuild/fpc-
> > source/compiler/ppc386.exe -bu --prefix=c:\temp\lazarusbuild\fpc\3.0.2 
> > --baseinstalldir=c:\temp\lazarusbuild\fpc\3.0.2 " is performed through
> > CreateProcess, but
> > "./fpmake.exe install --localunitdir=.. --os=win32 --cpu=i386 -o -Ur
> > -o -Xs -o -O2 -o -n -o -di386 -o -dRELEASE --
> > compiler=c:/temp/lazarusbuild/fpc-source/compiler/ppc386.exe -bu --
> > prefix=c:\temp\lazarusbuild\fpc\3.0.2 --
> > baseinstalldir=c:\temp\lazarusbuild\fpc\3.0.2 --
> > bininstalldir="c:\temp\lazarusbuild"\fpc\3.0.2\bin\i386-win32" through
> > creating temporary batch file. Please help me, I need everything to
> > work without a batch file, otherwise the "./fpmake.exe ..." construct
> > leads to an error in cmd.exe. Thank you in advance, I'm sorry for my
> > english.
> 
> You should generally not email "address@hidden".  Simply sending an email
> directly (not BCC'd) to the mailing list for the package you are working
> with will be sufficient.
> 
> It may be that someone here will know the answer, but another option for
> Windows-specific questions (using GNU make on Windows represents some
> special challenges) would be the address@hidden mailing list.

The reason in your case seems to be the quotes on the command line.
If you avoid the quotes and redirection, Make will invoke the command
directly.

You can also upgrade to the latest version 4.2.1 of GNU Make, which
AFAIR invokes commands directly even if they use quotes.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]