From 9f6ed0fb794009567dcfd8d199ef3ef42a83fad0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Wed, 25 Aug 2004 19:28:50 +0000 Subject: Testing the source documentation files manually - the circular dependency is always dropped, even with $(srcdir) != builddir. CVS patchset: 6904 CVS date: 2004/08/25 19:28:50 --- doc/faq/Makefile.am | 12 ++++++------ doc/hackersguide/Makefile.am | 12 +++++++----- 2 files changed, 13 insertions(+), 11 deletions(-) (limited to 'doc') diff --git a/doc/faq/Makefile.am b/doc/faq/Makefile.am index f5d768cf0..c04c4442c 100644 --- a/doc/faq/Makefile.am +++ b/doc/faq/Makefile.am @@ -6,10 +6,13 @@ docs_DATA = faq.html faq.txt docsdir = $(prefix)/share/doc/xine/faq -docs: $(docs_DATA) +docs: docs-prepare $(docs_DATA) distclean-generic: clean-docs +docs-prepare: $(srcdir)/faq.sgml + test -f ./faq.sgml || cp $^ . + clean-docs: rm -f $(docs_DATA) test "x$(srcdir)" = x. || rm -f faq.sgml @@ -18,14 +21,11 @@ dist-hook: @make fail_if_missing=yes docs cp $(docs_DATA) $(distdir) -faq.sgml: $(srcdir)/faq.sgml - cp $^ . - if HAVE_SGMLTOOLS -faq.html: faq.sgml +faq.html: docs-prepare faq.sgml $(SGMLTOOLS) -b onehtml faq.sgml; else -faq.html: faq.sgml +faq.html: docs-prepare faq.sgml if test x"$(fail_if_missing)" = x"yes"; then \ echo "Please install sgmltools-lite."; \ exit 1; \ diff --git a/doc/hackersguide/Makefile.am b/doc/hackersguide/Makefile.am index 082601466..5fe5bc428 100644 --- a/doc/hackersguide/Makefile.am +++ b/doc/hackersguide/Makefile.am @@ -20,6 +20,11 @@ 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 + clean-docs: rm -f $(docs_DATA) test "x$(srcdir)" = x. || rm -f $(hackersguide_sgml) @@ -28,14 +33,11 @@ dist-hook: @make fail_if_missing=yes docs cp $(docs_DATA) $(distdir) -$(hackersguide_sgml): %.sgml: $(srcdir)/%.sgml - cp $^ . - if HAVE_SGMLTOOLS -hackersguide.html: $(hackersguide_sgml) +hackersguide.html: docs-prepare $(hackersguide_sgml) $(SGMLTOOLS) -b onehtml hackersguide.sgml; else -hackersguide.html: $(hackersguide_sgml) +hackersguide.html: docs-prepare $(hackersguide_sgml) if test x"$(fail_if_missing)" = x"yes"; then \ echo "Please install sgmltools-lite."; \ exit 1; \ -- cgit v1.2.3