Adds .PHONY to Makefile

This commit is contained in:
Yury Delendik 2012-10-05 11:10:27 -05:00
parent a1724e341d
commit dc451b0028

View File

@ -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');
};