# To subscribers of the xforms list from Angus Leeming <angus.leeming@btopenworld.com> :
On Wednesday 21 May 2003 7:30 pm, Angus Leeming wrote:
> My understanding of automake is that it executes the BUILT_SOURCES stuff
> before doing anything else. Ie, make distdir itself will cause forms.h to
> be built. I am somewhat hazy about all this, however, because I do not
> understand what the "make" command below is doing.
Looking further, in lib/include/Makefile we have:
distdir: $(DISTFILES)
where
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
and
DIST_COMMON = $(include_HEADERS) $(noinst_HEADERS) AAA.h.in Makefile.am \
Makefile.in
Note here that
include_HEADERS = forms.h
I append the distdir target below. Read it and you'll see why forms.h is
copied on "make dist".
Angus
distdir: $(DISTFILES)
@list='$(DISTFILES)'; for file in $$list; do \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
dir="/$$dir"; \
$(mkinstalldirs) "$(distdir)$$dir"; \
else \
dir=''; \
fi; \
if test -d $$d/$$file; then \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
fi; \
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
else \
test -f $(distdir)/$$file \
|| cp -p $$d/$$file $(distdir)/$$file \
|| exit 1; \
fi; \
done
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuhs.mil or see
http://bob.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://world.std.com/~xforms
List Archive: http://bob.usuhs.mil/mailserv/list-archives/
Development: http://savannah.nongnu.org/files/?group=xforms
This archive was generated by hypermail 2b29 : Wed May 21 2003 - 17:22:14 EDT