help-make
[Top][All Lists]
Advanced

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

Re: list of targets to make


From: Torsten Mohr
Subject: Re: list of targets to make
Date: Wed, 2 Nov 2005 23:51:37 +0100
User-agent: KMail/1.8

Hi,

thanks for your hint.  It works, but can i also use $? in a
rule of the form:

$(OBJS_A) : %.o : %.c


Best regards,
Torsten.


Here's the mail and the solution i refer to:

>   tm> SRC := a.c b.c c.c d.c
>   tm> OBJ := a.o b.o c.o d.o
>
>   tm> %.o : %.c
>   tm>   compiler -o $@ -c $<
>
>   tm> With the small example above, "make" calls the compiler for
>   tm> each target that is not up to date or does not exist.
>
>   tm> Is it possible to formulate a rule to hand _all_ the targets
>   tm> that are not up to date to the compiler?

> Yes, but it's not necessarily pretty:
>
>     all: .allobjs
>
>     .allobjs: $(SRC)
>             compiler -c $?
>             @touch $@




reply via email to

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