TooTallNate/node-gyp — Issue #18: node-gyp configure fails when run twice
Author: mojodna
Created: 2012-02-11 02:01:38+00:00
State: open

Yeah, yeah, I probably shouldn't be running it twice. But when I do:

```bash
seth@lotus:~/src/JustinTulloss/zeromq.node [⚡ gyp] $ node-gyp configure --target=0.7
info it worked if it ends with ok
spawn python [ '/Users/seth/.node-gyp/0.7/tools/gyp_addon',
'-f',
'make',
'--suffix',
'.gyp',
'-I',
'/Users/seth/.node-gyp/0.7/tools/patch2722.gypi',
'-Dtarget_arch=ia32' ]
info done ok
seth@lotus:~/src/JustinTulloss/zeromq.node [⚡ gyp] $ node-gyp configure --target=0.7
info it worked if it ends with ok
spawn python [ '/Users/seth/.node-gyp/0.7/tools/gyp_addon',
'-f',
'make',
'--suffix',
'.gyp',
'-I',
'/Users/seth/.node-gyp/0.7/tools/patch2722.gypi',
'-Dtarget_arch=ia32' ]
Traceback (most recent call last):
File "/Users/seth/.node-gyp/0.7/tools/gyp_addon", line 22, in
rc = gyp.main(gyp_args)
File "/Users/seth/.node-gyp/0.7/tools/gyp/pylib/gyp/__init__.py", line 471, in main
options.circular_check)
File "/Users/seth/.node-gyp/0.7/tools/gyp/pylib/gyp/__init__.py", line 111, in Load
depth, generator_input_info, check, circular_check)
File "/Users/seth/.node-gyp/0.7/tools/gyp/pylib/gyp/input.py", line 2270, in Load
depth, check)
File "/Users/seth/.node-gyp/0.7/tools/gyp/pylib/gyp/input.py", line 361, in LoadTargetBuildFile
includes, True, check)
File "/Users/seth/.node-gyp/0.7/tools/gyp/pylib/gyp/input.py", line 216, in LoadOneBuildFile
None)
File "Makefile.gyp", line 7
MAKEFLAGS=-r
^
SyntaxError: invalid syntax
ERR! `gyp_addon` failed with exit code: 1
ERR! not ok
```