[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
problems running certain utilities via makefile (Win32)
From: |
Gorlash |
Subject: |
problems running certain utilities via makefile (Win32) |
Date: |
Thu, 3 Dec 2015 15:12:36 -0800 (PST) |
I have been using makefiles for many years, but have historically had
problems running certain win32 executables via it, though the same command
works fine in a batch file. One of my more common problem applications is
lint-nt.exe, from PcLint. Here is a typical command:
c:\lint9\lint-nt +v -width(160,4) $(LiFLAGS) +fcp -ic:\lint9 mingw.lnt
-os(_lint.tmp) lintdefs.cpp $(CPPSRC)
If I try to run this explicitly, it fails with:
c:\lint9\lint-nt +v -width(160,4) +fcp -ic:\lint9 mingw.lnt -os(_lint.tmp)
lintdefs.cpp json_handler.cpp common_funcs.cpp nsort.cpp
/bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: line 0: `c:\lint9\lint-nt +v -width(160,4) +fcp -ic:\lint9
mingw.lnt -os(_lint.tmp) lintdefs.cpp json_handler.cpp common_funcs.cpp
nsort.cpp '
Makefile:42: recipe for target 'lintraw' failed
make: *** [lintraw] Error 258
(note that the macros expanded properly, and that the resulting command
works fine from cmd.exe)
In the past, I used Cygwin make, and with that program I could instead spawn
the command in cmd.exe using:
cmd /c "c:\lint9\lint-nt +v -width(160,4) $(LiFLAGS) +fcp -ic:\lint9
mingw.lnt -os(_lint.tmp) lintdefs.cpp $(CPPSRC)"
and that worked fine. Recently, though, I've switched to using GnuWin32,
but the preceding command fails with:
C:\SourceCode\json Yes, Master?? > make lint
cmd /c "c:\lint9\lint-nt +v -width(160,4) +fcp -ic:\lint9 mingw.lnt
-os(_lint.tmp) lintdefs.cpp json_handler.cpp common_funcs.cpp nsort.cpp "
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
and then it leaves me sitting in this sub-shell, without doing anything.
So, at this point, I can't find any way to run this command from a
makefile!! I even downloaded Make V4.1 and build using MinGW, but that
didn't help any.
Is there some technique to solve this problem, whatever it is??
--
View this message in context:
http://gnu-make.2324884.n4.nabble.com/problems-running-certain-utilities-via-makefile-Win32-tp16736.html
Sent from the Gnu - Make - Help mailing list archive at Nabble.com.
- problems running certain utilities via makefile (Win32),
Gorlash <=