[XForms] Re: [Xforms-cvs] xforms ./ChangeLog demos/Makefile.am lib/includ...
Angus Leeming
angus.leeming at btopenworld.com
Wed Dec 3 06:25:53 EST 2003
On Wednesday 03 December 2003 11:12 am, Jean-Marc Lasgouttes wrote:
> To subscribers of the xforms list
>
> >>>>> "Angus" == Angus Leeming <angus.leeming at btopenworld.com> writes:
>
> Angus> CVSROOT: /cvsroot/xforms Module name: xforms Branch: Changes
> Angus> by: Angus Leeming <angus.leeming at btopenworld.com> 03/12/02
> Angus> 20:02:26
>
> Angus> Modified files: . : ChangeLog demos : Makefile.am lib/include :
> Angus> Makefile.am
>
> Angus> Log message: Some subtle little fixes needed to get things
> Angus> working on non-gnu platforms.
>
> - sed "1,/crop here for forms/d" ${srcdir}/$$i >> tmpforms; \
> + sed "1,/crop here for forms/d" ${srcdir}/`basename $$i` >> tmpforms; \
>
> an you explain briefly what this does?
You mean the change? I'm trying to overcome a problem compiling with Dec's
make and with srcdir != builddir. This snippet in Makefile.am (ie the
original snippet):
for i in $(noinst_HEADERS); do \
sed "1,/crop here for forms/d" ${srcdir}/$$i >> tmpforms; \
done
Is expanded by Dec's make to:
for i in ../../../lib/include/Basic.h ../../../lib/include/XBasic.h
../../../lib/include/bitmap.h ../../../lib/include/box.h
[snip file list];
do sed "1,/crop here for forms/d" ../../../lib/include/$i >> tmpforms; done
sed: Cannot find or open file
../../../lib/include/../../../lib/include/Basic.h.
Doing the same thing with gnu make:
for i in Basic.h XBasic.h bitmap.h box.h browser.h button.h canvas.h chart.h
choice.h clipbd.h clock.h counter.h cursor.h dial.h filesys.h flps.h
formbrowser.h frame.h free.h goodies.h input.h menu.h menubar.h popup.h
positioner.h scrollbar.h slider.h tabfolder.h text.h thumbwheel.h timer.h
xyplot.h zzz.h; do \
sed "1,/crop here for forms/d" ../../../lib/include/$i >> tmpforms; \
done
You see the problem? One make gives the files their full path and the other
doesn't. The trick, therefore, is to use only the filename part.
Any better ideas?
Angus
More information about the Xforms
mailing list