|
From: Ethan A M. <merritt@u.washington.edu> - 2006-06-17 05:55:31
|
On Friday 16 June 2006 11:12 pm, Timoth=E9e Lecomte wrote:
> When 'make distcheck' enters ./demo to do 'make check', =20
> GNUPLOT_DRIVER_DIR is set to " `pwd`/../src ", so that gnuplot_x11 is=20
> looked in the right place. I thought I would just had to similarly set=20
> WXT_PNG_DIR to " `pwd` /../src/wxterminal/bitmaps/png ", but it does not=
=20
> work. When I say " 'make distcheck' enters ./demo", in fact it enters=20
> <gnuplot root>/gnuplot-4.1.0/_build/demo and there is nothing in=20
> <gnuplot_root>/gnuplot-4.1.0/_build/src/wxterminal/bitmaps/png as 'make=20
> install' has not been called, whereas gnuplot_x11 is is=20
> <gnuplot_root>/gnuplot-4.1.0/_build/src because it has just been compiled.
>=20
> I thought I could set WXT_PNG_DIR to " `pwd`=20
> /../../../src/wxterminal/bitmaps/png ", but that would not work if you=20
> just try 'make check' in <gnuplot_root>.
>=20
> I would need an absolute path to <gnuplot_root>, but I don't know how to=
=20
> get this one.
>=20
> Any suggestion ?
Not really.
I'm having my own battle with 'make distcheck', with regard to the
recently added X-Resources file. I've put lines in .../share/Makefile.am
install-data-local:
$(mkinstalldirs) $(DESTDIR)$(XRESOURCEPATH)
if test -d $(DESTDIR)$(XRESOURCEPATH) && test -w $(DESTDIR)$(XRESOU=
RCEPATH); then \
$(INSTALL_DATA) Gnuplot.app-defaults $(DESTDIR)$(XRESOURCEPATH)/G=
nuplot \
; fi
However, this doesn't work during 'make distcheck' becuase $(DESTDIR) is
not being expanded. Why not? It seems to expand correctly for the similar
lines in .../term/Makefile.am
install-data-local:
$(mkinstalldirs) $(DESTDIR)$(GNUPLOT_PS_DIR)
$(INSTALL_DATA) $(srcdir)/PostScript/*.ps $(DESTDIR)$(GNUPLOT_PS_DI=
R)
Why does the latter get expanded to
=09
/bin/sh ../../mkinstalldirs /home/merritt/cvs/gnuplot-cvs/gnuplot-4.1.0/=
_inst/share/gnuplot/4.1/PostScript
While the former gets expanded to
/bin/sh ../../mkinstalldirs /usr/lib/X11/app-defaults
=2D-=20
Ethan A Merritt
Biomolecular Structure Center
University of Washington, Seattle 98195-7742
|