avr-chat
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-chat] Makefile for Avrdude


From: Dave Hylands
Subject: Re: [avr-chat] Makefile for Avrdude
Date: Sun, 28 May 2006 18:44:00 -0700

Hi Chris,

Sending to the list too....

I'm a bit rusty on writing makefiles, and I'm trying to write one to
compile and upload a simple blink program to an atmega48 using avrdude
and an avrisp2. However, when I run make I get the error "makefile:9:
*** target pattern contains no `%'.  Stop."
I have a feeling the problem is pretty simple, but I just can't see it.
Below is my makefile. Any help is greatly appreciated.

This one is a bit obscure. What's happening is that make wants
recipies to have tab characters at the beginning of the lines, and not
spaces. The leading spaces are ignored, so your makefile is being read
is if it looked like this:

program : $(TARGET).hex

avrdude -p $(PART) -c $(PROGRAMMER) -e flash:w:$(TARGET).hex

The colon on this line is being treated as a target/prerequisite
separator. If you put a tab character at the beginning of the line
then it will be treated as a recipie line rather then a dependency
line.

--
Dave Hylands
Vancouver, BC, Canada
http://www.DaveHylands.com/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]