Amanda-Users

Re: Problems building 2.5 B2

2006-02-25 17:26:14
Subject: Re: Problems building 2.5 B2
From: stan <stanb AT panix DOT com>
To: Ian Turner <ian AT zmanda DOT com>
Date: Sat, 25 Feb 2006 17:20:47 -0500
On Thu, Feb 23, 2006 at 10:59:06PM -0500, Ian Turner wrote:
> On Thursday 23 February 2006 22:38, Jon LaBadie wrote:
> > The actual complaint is often a big help to those answering.
> >
> > > $(man_MANS): %: $(MANPAGEDIR)/%.proc.xml xslt/man.xsl
> > >         $(XSLTPROC) --path xslt/ --output $@ man.xsl $<
> > >
> > > Now, it's been a while since I wrote Makefiles, but I must admit that I
> > > don't undrstand rh %: myself.
> 
> I have to confess that this is my doing. That line is a "static pattern", 
> which is different from an implicit rule in that it applies only to the given 
> targets (in this case, man_MANS). However, it would seem that your make does 
> not support static patterns. 

The last time I worried about Makefile efficency was when I was compiling
on a 68000 :-)

> 
> Try the attached patch, and let me know what happens. Implicit rules hurt 
> make's performance (especially global ones like this), but there are not many 
> targets in that directory anyway, so it is probably not a problem.

BTW, gmake doesn't seem to able to handle this corectly,
as well as the Sun make that comes with Solaris 10.

I'll giv it a try, and report back.

> 
> --Ian
> -- 
> Wiki for Amanda documentation: http://wiki.zmanda.com/

> Index: man/Makefile.am
> ===================================================================
> RCS file: /cvsroot/amanda/amanda/man/Makefile.am,v
> retrieving revision 1.31
> diff -r1.31 Makefile.am
> 94c94
> < $(man_MANS): %: xml-source/%.proc.xml $(srcdir)/xslt/man.xsl
> ---
> > %: xml-source/%.proc.xml $(srcdir)/xslt/man.xsl


-- 
U.S. Encouraged by Vietnam Vote - Officials Cite 83% Turnout Despite Vietcong 
Terror 
- New York Times 9/3/1967