make.exe: *** No rule to make target `all'. Stop.

Go To Last Post
11 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,
I'm having a serious problem here using the programmers notepad.I have the source code and I made the makefile but when I hit 'Make All' i get this message in the output box :

make.exe: *** No rule to make target `all'. Stop.

I would be very gratefull if anyone can help me with this, cause i have a deadline to finish this project soon and I really don't know what to do.
thanx in advance.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

echo71 wrote:
Hi,
I'm having a serious problem here using the programmers notepad.I have the source code and I made the makefile but when I hit 'Make All' i get this message in the output box :

make.exe: *** No rule to make target `all'. Stop.

I would be very gratefull if anyone can help me with this, cause i have a deadline to finish this project soon and I really don't know what to do.
thanx in advance.


Are the makefile and the source code both saved in the same folder?

Is that folder the active working directory when you invoke 'Make All'?

Try navigating to the source code's folder from a DOS prompt and run "make all" from there.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

For the time being forget about trying to launch "make" from within PN but instead drop to a command prompt and go to the directory containing the source files and the Makefile and just try "make all" at the command prompt - does that work? It may also be instructive to type the command "which make.exe" to find out which version of the program is found first in the PATH on your machine. Hopefully it is \winavr\utils\bin\make.exe

Cliff

(PS is it only me but this thread appears at half normal width when viewed?!?)

(PPS Width OK now and Luke beat me to it! :lol: )

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I get this error if the target file in the makefile is the wrong one. i.e. if your main source file is myproject.c, but in the make file you have main.c, you'll get this type of error.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks for the hel. It worked with the make all, under the DOS prompt. But has listed some errors and never created the hex file, which I want as an output. This is because of errors at the code, right?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

echo71 wrote:
This is because of errors at the code, right?

It is indeed - you have to fix all the errors for it to build cleanly before you get any HEX file output. In fact you should also try and resolve any warnings too as they usually ARE warning you about something you didn't mean to have done.

Cliff

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello, my answer is appled to whoever using programmers notepad and MAKEFILE TOOL,

1. you have to check that is you are opened make file of your program which is generated from makefile tool, from that only you can perform make all operation.

why because if you opened your .c or cpp program if even you generate make file for that, from that you get this type of error, so just open that generated makefile file and perform make all or make clean.

2. Even you didnt get compiled or unexpected warnings about your program there is some things which we need do in makefile tool,

lets take example lines which i edit some where in makefile,

i. program: $(TARGET).hex $(TARGET).eep
    $(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)

in this i place bin in TARGET and

ii.# Create final output files (.hex, .eep) from ELF output file.
%.hex: %.elf
    @echo
    @echo $(MSG_FLASH) $@
    $(OBJCOPY) -O $(FORMAT) -R .eeprom -R .fuse -R .lock $< $@

from this, i edit 5th line.

so by changing some things then i got successfully sorted out from this problem by my sir.

I hope these my answers will help you ..

Thank you...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

About 12 years late but thank you. smiley

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I also have this kind of problem.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

kvrivishvilin wrote:

I also have this kind of problem.

 

Which of the suggestions above have you tried and what was the result?

#1 Hardware Problem? https://www.avrfreaks.net/forum/...

#2 Hardware Problem? Read AVR042.

#3 All grounds are not created equal

#4 Have you proved your chip is running at xxMHz?

#5 "If you think you need floating point to solve the problem then you don't understand the problem. If you really do need floating point then you have a problem you do not understand."

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Do you simply mean you are getting "no rule to make target"? That is such a generic error it can be for 10,000 different reasons. You need to look deeper into the build ("Output" tab) to see what's actually behind that ultimately being shown.