mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Adds .PHONY to Makefile
This commit is contained in:
parent
a1724e341d
commit
dc451b0028
1 changed files with 3 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue