hawkins / watchdog

⚠️ Watch filesystem for changes and then run a command
2 stars 0 forks source link

Make interopability #4

Open hawkins opened 6 years ago

hawkins commented 6 years ago

I would love if there was a watchdog -m/--make argument that would, when specified without any additional arguments (e.g., without watchdog -m install), would list out the make targets.

Then, you could run watchdog -m [TARGET] -p '*.c' or something to run make [TARGET] anytime a *.c file changes.

Additionally, would be rad to have some sort of smart mode like watchdog -m match -p '*.c' where match is replaced with the file that changed, so you can run any make tasks that depend on that file. This may be too complicated tho, so I'll consider it a bonus.