[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] How to make to variants with one makefile?
From: |
Ned Konz |
Subject: |
Re: [avr-gcc-list] How to make to variants with one makefile? |
Date: |
Sat, 20 Nov 2004 13:21:00 -0800 |
User-agent: |
KMail/1.7.1 |
On Saturday 20 November 2004 12:42 pm, Anton Erasmus wrote:
> I am looking for a makefile construct that would give the following:
>
> echo -DVersion1 t1.hex
> -DVersion1 t1.hex
> echo -DVersion1 t2.hex
> -DVersion1 t2.hex
> echo -DVersion2 t1.hex
> -DVersion2 t1.hex
> echo -DVersion2 t2.hex
> -DVersion2 t2.hex
>
> Does anybody have a suggestion of how to get make to do the above with a
> single make command ?
Maybe I'm missing something, but what about something like this:
HEXFILES = t1.hex t2.hex
all: $(HEXFILES)
$(HEXFILES):
echo -DVersion1 $@
echo -DVersion2 $@
--
Ned Konz
http://bike-nomad.com