diff options
Diffstat (limited to 'doc/faq')
-rw-r--r-- | doc/faq/Makefile.am | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/doc/faq/Makefile.am b/doc/faq/Makefile.am index c04c4442c..918c311c3 100644 --- a/doc/faq/Makefile.am +++ b/doc/faq/Makefile.am @@ -1,17 +1,19 @@ include $(top_srcdir)/misc/Makefile.common -EXTRA_DIST = README faq.sgml - docs_DATA = faq.html faq.txt +EXTRA_DIST = README faq.sgml $(docs_DATA) + docsdir = $(prefix)/share/doc/xine/faq -docs: docs-prepare $(docs_DATA) +docs: $(docs_DATA) distclean-generic: clean-docs docs-prepare: $(srcdir)/faq.sgml - test -f ./faq.sgml || cp $^ . + if test "$(srcdir)" != "." ; then \ + test -f ./faq.sgml -a ./faq.sgml -nt $(srcdir)/faq.sgml || cp $^ . ; \ + fi clean-docs: rm -f $(docs_DATA) @@ -19,17 +21,19 @@ clean-docs: dist-hook: @make fail_if_missing=yes docs - cp $(docs_DATA) $(distdir) if HAVE_SGMLTOOLS -faq.html: docs-prepare faq.sgml +faq.html: faq.sgml + $(MAKE) docs-prepare $(SGMLTOOLS) -b onehtml faq.sgml; else -faq.html: docs-prepare faq.sgml +faq.html: faq.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 $^; \ @@ -38,13 +42,16 @@ endif if HAVE_SGMLTOOLS faq.txt: faq.sgml + $(MAKE) docs-prepare $(SGMLTOOLS) -b txt faq.sgml; else faq.txt: faq.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 $^; \ |