Add a .gyp suffix to generated makefile, avoid clobbering an existing one.

This commit is contained in:
Christopher Jeffrey 2012-02-05 20:51:44 -06:00
parent d6da72c4b5
commit f45f243053
2 changed files with 4 additions and 0 deletions

View file

@ -31,6 +31,8 @@ function build (gyp, argv, callback) {
if (win) {
argv.push('/p:Configuration=' + config)
} else {
argv.push('-f');
argv.push('Makefile.gyp');
argv.push('BUILDTYPE=' + config)
}

View file

@ -45,6 +45,8 @@ function configure (gyp, argv, callback) {
argv.push(path.join(devDir, 'tools', 'patch.gypi'))
} else {
// Force the 'make' target for non-Windows
argv.unshift('.gyp')
argv.unshift('--suffix')
argv.unshift('make')
argv.unshift('-f')
}