summaryrefslogtreecommitdiff
path: root/doc/hackersguide
diff options
context:
space:
mode:
authorStephen Torri <storri@users.sourceforge.net>2004-09-05 02:14:38 +0000
committerStephen Torri <storri@users.sourceforge.net>2004-09-05 02:14:38 +0000
commitb6194b818abadf3054c9a72df8a72e491507985a (patch)
treeb681af3319c07d4c13d346a460313b901ec74d92 /doc/hackersguide
parent00c9c88fda8396c1626095f313dc359d767f63b1 (diff)
downloadxine-lib-b6194b818abadf3054c9a72df8a72e491507985a.tar.gz
xine-lib-b6194b818abadf3054c9a72df8a72e491507985a.tar.bz2
autogen.sh:
Fix what I perceive to be a bug only on platforms that have a automake installed that contains multiple version. Gentoo releases a package of automake that contains all the latest stable version (1.4 to 1.8). In order to use a specific one besides the default you need to declare WANT_AUTOMAKE=1.6 in your environment varibles. ------------------------------------ doc/faq/Makefile.am doc/hackersguide/Makefile.am Applied Frantisek Dvorak changes for the documentation. CVS patchset: 6939 CVS date: 2004/09/05 02:14:38
Diffstat (limited to 'doc/hackersguide')
-rw-r--r--doc/hackersguide/Makefile.am33
1 files changed, 20 insertions, 13 deletions
diff --git a/doc/hackersguide/Makefile.am b/doc/hackersguide/Makefile.am
index f720fa957..34dc05c56 100644
--- a/doc/hackersguide/Makefile.am
+++ b/doc/hackersguide/Makefile.am
@@ -12,7 +12,7 @@ docs_DATA = hackersguide.html \
architecture.png library.png overlays.png post_frame.png
EXTRA_DIST = README $(hackersguide_sgml) \
- architecture.fig library.fig overlays.fig post_frame.fig
+ architecture.fig library.fig overlays.fig post_frame.fig $(docs_DATA)
docsdir = $(prefix)/share/doc/xine/hackersguide
@@ -20,10 +20,12 @@ docs: $(docs_DATA)
distclean-generic: clean-docs
-docs-prepare: $(addprefix $(srcdir)/, $(hackersguide_sgml))
- for file in $(hackersguide_sgml); do \
- test -f ./$$file || cp $(srcdir)/$$file .; \
- done
+docs-prepare: $(addprefix $(srcdir)/, $(hackersguide_sgml) $(wildcard *.fig))
+ if test "$(srcdir)" != "." ; then \
+ for file in $(hackersguide_sgml) *.fig ; do \
+ test -f ./$$file -a ./$$file -nt $(srcdir)/$$file || cp $(srcdir)/$$file .; \
+ done ; \
+ fi
clean-docs:
rm -f $(docs_DATA)
@@ -31,17 +33,19 @@ clean-docs:
dist-hook:
@make fail_if_missing=yes docs
- cp $(docs_DATA) $(distdir)
if HAVE_SGMLTOOLS
-hackersguide.html: docs-prepare $(hackersguide_sgml)
+hackersguide.html: $(hackersguide_sgml)
+ $(MAKE) docs-prepare
$(SGMLTOOLS) -b onehtml hackersguide.sgml;
else
-hackersguide.html: docs-prepare $(hackersguide_sgml)
+hackersguide.html: $(hackersguide_sgml)
+ $(MAKE) docs-prepare
if test x"$(fail_if_missing)" = x"yes"; then \
echo "Please install sgmltools-lite."; \
exit 1; \
- else \
+ fi
+ -if test x"$(fail_if_missing)" != x"yes"; then \
touch $@; \
sleep 1; \
touch $^; \
@@ -49,14 +53,17 @@ hackersguide.html: docs-prepare $(hackersguide_sgml)
endif
if HAVE_FIG2DEV
-%.png: $(srcdir)/%.fig
+%.png: %.fig
+ $(MAKE) docs-prepare
$(FIG2DEV) -L png -S 4 $< $@;
else
-%.png: $(srcdir)/%.fig
- -if test x"$(fail_if_missing)" = x"yes"; then \
+%.png: %.fig
+ $(MAKE) docs-prepare
+ if test x"$(fail_if_missing)" = x"yes"; then \
echo "Please install fig2dev."; \
exit 1; \
- else \
+ fi
+ -if test x"$(fail_if_missing)" != x"yes"; then \
touch $@; \
sleep 1; \
touch $^; \