🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

awake

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

awake

File watcher for make

0.1.1
latest
Source
npm
Version published
Weekly downloads
4
Maintainers
1
Weekly downloads
 
Created
Source

awake

... 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

Usage

awake example

awake will search for a Makefile in your current working directory and read its targets from it. You can specify an alternative directory to look up using the --directory option:

# Uses ./ as cwd
awake

# Uses ../example as cwd
awake --directory ../example
```

You're able to whitelist (`--include`) 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
```

Under the hood
=====

`awake` 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.
By default `awake` 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
```

FAQs

Package last updated on 11 May 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts