Couto
Couto

Reputation: 853

Makefile command conflicts with folder name

I'm having a small problem with my Makefile, where it conflicts with a folder. First of all I'm using the Makefile to run several shell commands Per example:

Makefile contents:

test:
    @./node_modules/.bin/mocha -R $(REPORTER) \
        $(WATCH) \
        --ui $(UI)

If in the same directory of the Makefile, I have a folder named test when I run:

make test

I get the following result:

make: `test' is up to date.

I really have no idea to explain this better, but I would gladly answer and question asking for more details.

Upvotes: 3

Views: 668

Answers (1)

Beta
Beta

Reputation: 99134

I have no idea what mocha is (I'm guessing it's some combination of Cocoa and Java), but try adding this line to your makefile, outside the rule:

.PHONY: test

Upvotes: 6

Related Questions