README
VanillaMake
Makefiles in Javascript made easy!
How to use
- Create a new file
- Paste the following code in this file:
var VMake = require('vanillamake');
VMake('default', function(argv) {
console.dir(argv);
});
VMake('clean', function() {
// ...
});
VMake('test', function() {
console.log('Running tests...');
// ...
});
VMake('merge-source', ['clean'], function() {
console.log('Merging files..');
// ...
});
VMake('build', ['merge-source', 'test'], function() {
console.log('BUILDING..');
// ...
});
- Run it, with
node <filepath> build
ornode <filepath>
the output will be different, because VanillaMake will only execute 'default' of no taskname given in the CLI. - Watch what happens.
Note: Windows not supported yet.
License
This software is MIT-licensed. see LICENSE
for more information