Re: how to define a set of targets for a recursive structure?

2003-12-16 Thread Noel Yap
"Robert P. J. Day" wrote: > > 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. > > as i t

Re: how to define a set of targets for a recursive structure?

2003-12-16 Thread Robert P. J. Day
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. as i take a closer look at this, just out of curiosi

Re: how to define a set of targets for a recursive structure?

2003-12-16 Thread Noel Yap
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. In a recursive makefile structure, rather than running make for the subdirectories, each subdirect

Re: can't compute prerequisites in static pattern rule

2003-12-16 Thread Noel Yap
CC'ing [EMAIL PROTECTED] Evgeny Sologubov wrote: > > Hello, Noel, > Tuesday, December 16, 2003, 5:02:03 PM, You wrote: > >>[...] > NY> For example, in the end, I think what you want is to generate > NY> a dependency file for a project. The usual way to do this is to > NY> include that dependency

how to define a set of targets for a recursive structure?

2003-12-16 Thread Robert P. J. Day
(sorry about all the traffic my previous posting caused -- i didn't realize i was disturbing the hornet's nest quite that much. i did eventually figure out that i was looking at the wrong section in the make manual. and now, onward.) i want to define a standard set of targets for a multi-le

Re[2]: can't compute prerequisites in static pattern rule

2003-12-16 Thread Evgeny Sologubov
Hello, Noel, Tuesday, December 16, 2003, 5:02:03 PM, You wrote: >>[...] NY> For example, in the end, I think what you want is to generate NY> a dependency file for a project. The usual way to do this is to NY> include that dependency file within the makefile. This inclusion NY> cannot be done gen

Re: let me rephrase that -- question about empty commands

2003-12-16 Thread Noel Yap
"Paul D. Smith" wrote: > ny> Anyway, the behaviour I had seen was when I had somithing like the > ny> following rules: > > ny> .SUFFIXES: .pm _wrap.cc > ny> $(build.DIR)/common/%.pm: $(build.DIR)/common/%_wrap.cc > > First note that all your uses of .SUFFIXES here are useless: .SUFFIX

Re: let me rephrase that -- question about empty commands

2003-12-16 Thread Paul D. Smith
%% Noel Yap <[EMAIL PROTECTED]> writes: ny> Upon re-reading this portion of the paper, I think I may have ny> misunderstood exactly what the bug is: ny> Quick note: why do we have ":" as the command to be run? That's ny> the Bourne shell's "do nothing" operator. GNU make is actually ny>

Re: let me rephrase that -- question about empty commands

2003-12-16 Thread Noel Yap
Upon re-reading this portion of the paper, I think I may have misunderstood exactly what the bug is: Quick note: why do we have ":" as the command to be run? That's the Bourne shell's "do nothing" operator. GNU make is actually smart enough to notice that your rule consists of just the "do noth

Re: let me rephrase that -- question about empty commands

2003-12-16 Thread Paul D. Smith
%% Noel Yap <[EMAIL PROTECTED]> writes: ny> Here's what I found in the manual: ny> We feel that it is cleaner for a rule without commands to always ny> simply add to the prerequisite list for the target. ny> IIRC, there's a bug in which this doesn't always happen (I think ny>

Re: can't compute prerequisites in static pattern rule

2003-12-16 Thread Noel Yap
Evgeny Sologubov wrote: > > Hello, > > I am having a problem with such a rule: > > all: prj-Main > > prj-%: $(shell cat -s %/Makefile.dep) >$(MAKE) -C $* > > make (a win32 build of v3.80) says: > /usr/bin/cat: %/Makefile.dep: No such file or directory > :( > > I expected that it shall

Re: let me rephrase that -- question about empty commands

2003-12-16 Thread Noel Yap
"Paul D. Smith" wrote: > If you read the manual section on "Rules without commands or > prerequisites" the pros and cons are discussed there. Here's what I found in the manual: We feel that it is cleaner for a rule without commands to always simply add to the prerequisite list for the t

can't compute prerequisites in static pattern rule

2003-12-16 Thread Evgeny Sologubov
Hello, I am having a problem with such a rule: all: prj-Main prj-%: $(shell cat -s %/Makefile.dep) $(MAKE) -C $* make (a win32 build of v3.80) says: /usr/bin/cat: %/Makefile.dep: No such file or directory :( I expected that it shall be expanded to the following: prj-Main: $(shell cat -s