CVS Update: font (branch: trunk)

Alexander Gottwald Alexander.Gottwald at s1999.tu-chemnitz.de
Fri Jul 15 10:24:10 PDT 2005


Alan Coopersmith wrote:

> Alexander Gottwald wrote:
> > On Thu, 14 Jul 2005, Alan Coopersmith wrote:
> >>Log message:
> >>  Replace $< with portable construct
> >>
> >>Index: font/util/Makefile.am
> >>diff -u font/util/Makefile.am:1.1 font/util/Makefile.am:1.2
> >>--- font/util/Makefile.am:1.1   Thu Jun 30 22:28:08 2005
> >>+++ font/util/Makefile.am       Fri Jul 15 01:15:35 2005
> >>@@ -27,7 +27,7 @@
> >>
> >> bdftruncate$(EXEEXT): $(bdftruncate_SOURCES)
> >>        @rm -f $@
> >>-       cp $< $@
> >>+       cp $(bdftruncate_SOURCES) $@

> > This will break if $(builddir) != $(srcdir)
>
> So what do we need to do to make this work with both GNU make
> and non GNU make?   (Neither Solaris nor BSD make accept $<
> outside of templates for processing files by suffix.)

I've commited a fix which uses $(srcdir)/bdftruncate.pl instead of just
bdftruncate.pl.

This is the general rule. always specify $(srcdir) or $(builddir) when
replacing $<. The vpath rules will pickup dependencies from both dirs,
but shell script will not know about them.

bye
        ago
NP: Silke Bischoff - Shining Star
-- 
 Alexander.Gottwald at s1999.tu-chemnitz.de
 http://www.gotti.org           ICQ: 126018723



More information about the xorg mailing list