mirror of
https://github.com/electron/node-gyp.git
synced 2025-09-18 06:43:39 +02:00
Add a .gyp suffix to generated makefile, avoid clobbering an existing one.
This commit is contained in:
parent
d6da72c4b5
commit
f45f243053
2 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
@ -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')
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue