[XForms] Re: [Xforms-cvs] xforms ./ChangeLog demos/Makefile.am lib/includ...

Angus Leeming angus.leeming at btopenworld.com
Wed Dec 3 07:01:18 EST 2003


On Wednesday 03 December 2003 11:41 am, Jean-Marc Lasgouttes wrote:
> >>>>> "Angus" == Angus Leeming <angus.leeming at btopenworld.com> writes:
>
> Angus> You mean the change? I'm trying to overcome a problem compiling
> Angus> with Dec's make and with srcdir != builddir. This snippet in
> Angus> Makefile.am (ie the original snippet):
>
> Angus>         for i in $(noinst_HEADERS); do \ sed "1,/crop here for
> Angus> forms/d" ${srcdir}/$$i >> tmpforms; \ done
>
> Angus> Is expanded by Dec's make to:
>
> Angus> for i in ../../../lib/include/Basic.h
> Angus> ../../../lib/include/XBasic.h ../../../lib/include/bitmap.h
> Angus> ../../../lib/include/box.h [snip file list]; do sed "1,/crop
> Angus> here for forms/d" ../../../lib/include/$i >> tmpforms; done
>
> I am surprised, since in my Makefile.in noinst_HEADER is
> noinst_HEADERS = \
>         Basic.h \
>         XBasic.h \
>         bitmap.h \
>         box.h \
> ...
>
> Is it different in the Makefile.in on your dec?

Nope. It's the same (also in Makefile itself).

The relevant part of the generated Makefile appears to be:
distdir: $(DISTFILES)
        @list='$(DISTFILES)'; for file in $$list; do \

Ie, the answer lies in the definition of $(DISTFILES)

DIST_COMMON = $(noinst_HEADERS) AAA.h.in Makefile.am Makefile.in
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)

It appears that Dec make does something weird when expanding 
$(noinst_HEADERS).

Angus
k



More information about the Xforms mailing list