I'm just wondering why not use npm scripts instead of Makefiles? They work in Windows as well and they're easier to understand (at least imo).
Edit: Never mind, I'm apparently wrong.
> rm test.txt && java -version
rm: cannot unlink entry "test.txt": The system cannot find the file specified.