summaryrefslogtreecommitdiff
path: root/doc/faq
diff options
context:
space:
mode:
Diffstat (limited to 'doc/faq')
-rw-r--r--doc/faq/Makefile.am19
1 files changed, 11 insertions, 8 deletions
diff --git a/doc/faq/Makefile.am b/doc/faq/Makefile.am
index 9a4b259b0..21d2851e0 100644
--- a/doc/faq/Makefile.am
+++ b/doc/faq/Makefile.am
@@ -1,33 +1,36 @@
include $(top_srcdir)/misc/Makefile.common
EXTRA_DIST = README faq.sgml
-docs_DATA = $(srcdir)/faq.html $(srcdir)/faq.txt
+docs_DATA = faq.html faq.txt
docsdir = $(prefix)/share/doc/xine/faq
-docs: $(docs_DATA)
+docs: docs-prepare $(docs_DATA)
+
+docs-prepare: $(srcdir)/faq.sgml
+ test -f faq.sgml || cp $^ .
dist-hook:
@touch $(addprefix $(srcdir)/, $(EXTRA_DIST))
@make fail_if_missing=yes docs
cp $(docs_DATA) $(distdir)
-faq.html: $(srcdir)/faq.sgml
+faq.html: faq.sgml
@if test "$(SGMLTOOLS)" != "no"; then \
- $(SGMLTOOLS) -b onehtml $(srcdir)/faq.sgml; \
+ $(SGMLTOOLS) -b onehtml faq.sgml; \
else if test "$(fail_if_missing)" = "yes"; then \
echo "Please install sgmltools-lite."; \
exit 1; \
- else touch faq.html; \
+ else touch $@; \
fi; \
fi
-faq.txt: $(srcdir)/faq.sgml
+faq.txt: faq.sgml
@if test "$(SGMLTOOLS)" != "no"; then \
- $(SGMLTOOLS) -b txt $(srcdir)/faq.sgml; \
+ $(SGMLTOOLS) -b txt faq.sgml; \
else if test "$(fail_if_missing)" = "yes"; then \
echo "Please install sgmltools-lite."; \
exit 1; \
- else touch faq.txt; \
+ else touch $@; \
fi; \
fi