[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Should this makefile really hang make?
From: |
Paul Smith |
Subject: |
Re: Should this makefile really hang make? |
Date: |
Tue, 15 Nov 2011 16:41:34 -0500 |
On Tue, 2011-11-15 at 13:30 -0800, Bryan Ischo wrote:
> .SECONDEXPANSION:
> all: foo.a
> %.a: $$(@:%.a=%.o)
An infinite loop is bad, sure; I'll check that out. But why don't you
just write:
all: foo.a
%.a: %.o
??? There's no need for secondary expansion here.
--
-------------------------------------------------------------------------------
Paul D. Smith <address@hidden> Find some GNU make tips at:
http://www.gnu.org http://make.mad-scientist.net
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist