How do you declare custom variable inside of make target?
Posted
by Casey
on Stack Overflow
See other posts from Stack Overflow
or by Casey
Published on 2010-03-16T01:05:18Z
Indexed on
2010/03/16
1:09 UTC
Read the original article
Hit count: 290
makefile
How do you define dynamic variables in a makefile target? For example:
OBJS := a.o b.o c.o
SRCS := a.c b.c c.c
all: $(OBJS)
VAR := $@
@echo $(VAR)
© Stack Overflow or respective owner