I am using a makefile to run tests. I am not sure about the use of .PHONY
. I've read this post: What is the purpose of .PHONY in a makefile?, but still I'm not sure.
I have the following makefile:
```
test:
@# Clear console log before we start.
@clear
# Make sure we are not having too much modules.
@npm prune
# Make sure we have the required modules.
@npm install
@# Clear the console, so we only see the test results.
@clear
# Run the test.
@./node_modules/.bin/mocha-casperjs test.js --reporter=spec
```
My make test
command isn't making any new files. Should I be using the .PHONY: test
or not? But even more important, why? (or why not?)
Thank you!
Malcolm Kindermans