[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Target-specific Variables
From: |
Michael Morrell |
Subject: |
Target-specific Variables |
Date: |
Fri, 28 Mar 2014 16:38:09 -0700 (PDT) |
I've just started trying to use target-specific variables and I'm getting
results I don't understand. I'm
using make 3.81.
With this Makefile:
============================
a: SRCS = a1.c a2.c
OBJS = $(SRCS:.c=.o)
a: $(OBJS)
@echo $(OBJS)
@echo Making $@ from $^
@touch $@
============================
I get the output:
============================
a1.o a2.o
Making a from
============================
So, OBJS is defined correctly in the rule, but not as a dependency. What is
that?
Michael
- Target-specific Variables,
Michael Morrell <=