npm install awakeawake
=====
... is a file watcher which reruns your make targets when their dependent files change.
Installation
=====
Ensure to have Node.js installed.
``
`
npm install -g awake
awake
Usage
=====
!awake example
will search for a Makefile in your current working directory and read its targets from it.
--directory
You can specify an alternative directory to look up using the option:
``
bash
`Uses ./ as cwd
awake
Uses ../example as cwd
awake --directory ../example
--include
You're able to whitelist () and blacklist (--exclude) targets:
`
bash
`Only run dst.txt and foo.html (and not hello.png)
awake --include dst.txt,foo.html
Allow every taget except hello.png
awake --exclude hello.png
awake
Under the hood
=====
uses make's --print-data-base option to get a "compiled" version of the makefile which lists all targets and the files on which they depend.
awake
By default will run make -pn in your cwd but you can also read the output from a file:
`bash
``
make -pn > make-pn.txt
awake --make-database make-pn.txt