mirror of
https://github.com/electron/node-gyp.git
synced 2025-09-15 13:43:40 +02:00
Clean the Debug and Release dirs on Windows.
This commit is contained in:
parent
b2ee4cf8bf
commit
9d23e05691
1 changed files with 4 additions and 1 deletions
|
@ -9,7 +9,7 @@ exports.usage = 'Removes any generated build files and the "out" dir'
|
|||
|
||||
var rm = require('rimraf')
|
||||
, glob = require('glob')
|
||||
, targets = [ 'out' ]
|
||||
, targets = []
|
||||
|
||||
/**
|
||||
* Add the platform-specific targets to remove.
|
||||
|
@ -17,10 +17,13 @@ var rm = require('rimraf')
|
|||
|
||||
if (process.platform == 'win32') {
|
||||
// Remove MSVC project files
|
||||
targets.push('Debug')
|
||||
targets.push('Release')
|
||||
targets.push('*.sln')
|
||||
targets.push('*.vcxproj*')
|
||||
} else {
|
||||
// Remove Makefile project files
|
||||
targets.push('out')
|
||||
targets.push('Makefile')
|
||||
targets.push('*.Makefile')
|
||||
targets.push('*.target.mk')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue