help-make
[Top][All Lists]
Advanced

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

Re: Target-specific Variables


From: Jed Brown
Subject: Re: Target-specific Variables
Date: Sat, 29 Mar 2014 08:24:17 -0600
User-agent: Notmuch/0.17+82~g627480f (http://notmuchmail.org) Emacs/24.3.1 (x86_64-unknown-linux-gnu)

Michael Morrell <address@hidden> writes:

> 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)

At the top of your makefile, add

.SECONDEXPANSION:

You should see:

make-3.81: *** No rule to make target `a1.o', needed by `a'.  Stop.

Attachment: pgpAVCXDM71eE.pgp
Description: PGP signature


reply via email to

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