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.
I would love if there was a
watchdog
-m/--make
argument that would, when specified without any additional arguments (e.g., withoutwatchdog -m install
), would list out the make targets.Then, you could run
watchdog -m [TARGET] -p '*.c'
or something to runmake [TARGET]
anytime a*.c
file changes.Additionally, would be rad to have some sort of smart mode like
watchdog -m match -p '*.c'
wherematch
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.