tags:

views:

21

answers:

1

How do you define dynamic variables in a makefile target? For example:

all:
    VAR := $@
    @echo $(VAR)
A: 

I realize this is the correct way:

all: VAR = $@
all:
    @echo $(VAR)
Casey