bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: Error in gnu make?


From: Hans-Bernhard Broeker
Subject: Re: Error in gnu make?
Date: 9 Mar 2002 16:25:57 GMT

j <address@hidden> wrote:
[...]
> $(filename): %.out : %/%.in
[...]
>  make: *** No rule to make target `a/%.in', needed by `a.out'.  Stop.

> question 1- Is this a bug?  Or am I just misunderstanding something?

I think you're misunderstanding something.  % is substituted only once
per prerequisite pattern.

> question 2- Does anyone have a temporary solution for me....  

I would work around this by calling the *.in files differently.  

        a/subdir.in
        b/subdir.in
        c/subdir.in

come to mind. In this setup, a rule like

        $(filenames): %.out : %/subdir.in

would work.  Or use recursive makes.
-- 
Hans-Bernhard Broeker (address@hidden)
Even if all the snow were burnt, ashes would remain.



reply via email to

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