Start and Stop atom-shell from Makefile


#1

I’ve been attempting to find the best way to start and stop atom-shell via a makefile. So far unsuccessful at stopping atom-shell after running it. I basically want to rerun atom-shell after I edit any files within the project. Currently I use:

fswatch -o -r atom-project | xargs -n1 -I{} make

Makefile:

target:
	@echo "Compiling..."
	@-atom-shell ./

When I use this it will create a new instance of atom-shell and doesn’t kill the previous. I attempted to use pkill but this would only work half the time. Any suggestions or thoughts?