Adds .PHONY to Makefile
This commit is contained in:
parent
a1724e341d
commit
dc451b0028
3
make.js
3
make.js
@ -794,8 +794,11 @@ target.clean = function() {
|
||||
//
|
||||
target.makefile = function() {
|
||||
var makefileContent = 'help:\n\tnode make\n\n';
|
||||
var targetsNames = [];
|
||||
for (var i in target) {
|
||||
makefileContent += i + ':\n\tnode make ' + i + '\n\n';
|
||||
targetsNames.push(i);
|
||||
}
|
||||
makefileContent += '.PHONY: ' + targetsNames.join(' ') + '\n';
|
||||
makefileContent.to('Makefile');
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user