[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to define a set of targets for a recursive structure?
From: |
Robert P. J. Day |
Subject: |
Re: how to define a set of targets for a recursive structure? |
Date: |
Wed, 17 Dec 2003 12:05:28 -0500 (GMT-05:00) |
> On Tue, 16 Dec 2003, Noel Yap wrote:
>
> > This sounds about right for a recursive make structure.
> >
> > Alternatively, you can go for a non-recursive make (I call it a
> > recursive makefile) structure. See
> > http://aegis.sourceforge.net/auug97.pdf.
i realize this may be of limited interest to only those who are checking out
this paper, but i *swear* there's a significant typo in one of the makefiles
listed.
on p. 10, in the middle box, there is a static pattern rule for generating a
".d" dependency file from the corresponding ".c" file:
%.d : %.c
depend.sh $(CFLAGS) $* > $@
now, that "$*" just doesn't look right. the "depend.sh" script requires a
*source* file to generate that file's dependencies. the $* variable will give
you the *stem*, which makes no sense to compile.
i replaced $* with $<, and it seems to work. or am i just making a mess
of things?
rday