I'm new to using makefiles for my projects, and I decided to start since I got tired of writing out all of the commands and arguments.
The current makefile that I have looks like this:
run_program:
CUDA_VISIBLE_DEVICES=1
python DIR/main.py --setup2
When I run this program using the following command:
make run_program
I get the following error:
make: *** No rule to make target 'run_program'. Stop
I've made sure that the makefile is in the appropriate directory and that there are no spelling errors of the sort, but I'm having trouble figuring out what I did wrong. I've checked others answers such as gcc makefile error: “No rule to make target …” but I'm not sure how to apply it to my case.
Any tips or advice are greatly appreciated. Thanks in advance.
make
? – Betamake: *** No targets specified and no makefile found. Stop.
– Seanmake.mk
. – Seanmakefile.mk
and this doesn't work either. :( – Sean