help-make
[Top][All Lists]
Advanced

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

Re: creating directories through dependency


From: Michal Nowikowski
Subject: Re: creating directories through dependency
Date: Tue, 9 Jan 2007 10:04:02 +0100

On 1/9/07, Danny Boelens <address@hidden> wrote:
You can solve this problem with order-only prerequisites (note the '|'
character):
$(objs):%.o:%.c | $(BUILDDIR)
    $(CC) -c $< -o $(BUILDDIR)/$@

See 4.3 "Types of Prerequisites" in the GNU Make documentation for more
documentation.

Thanks, that works!

Regards
Michal Nowikowski




reply via email to

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