The `rm` call belongs in a `clean` target. Then, the `pristine`, `test-ci`, and `ensure_phantomjs` targets can all depend on `clean`.