summaryrefslogtreecommitdiff
path: root/doc/faq/Makefile.am
blob: 3370a4c5fc7b6469b4153cbc2f34d258c7252d5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
include $(top_srcdir)/misc/Makefile.common

EXTRA_DIST = README faq.sgml

docs_DATA = faq.html faq.txt

docsdir = $(prefix)/share/doc/xine/faq

docs: $(docs_DATA)

distclean-generic: clean-docs

clean-docs:
	rm -f $(docs_DATA)
	test "x$(srcdir)" = x. || rm -f faq.sgml

dist-hook:
	@make fail_if_missing=yes docs
	cp $(docs_DATA) $(distdir)

faq.sgml: $(srcdir)/faq.sgml
	cp $^ .

faq.html: faq.sgml
	@if test "$(SGMLTOOLS)" != "no"; then \
	  $(SGMLTOOLS) -b onehtml faq.sgml; \
	else \
	  if test "$(fail_if_missing)" = "yes"; then \
	    echo "Please install sgmltools-lite."; \
	    exit 1; \
	  else \
	    touch $@; \
	    sleep 1; \
	    touch $^; \
	  fi; \
	fi

faq.txt: faq.sgml
	@if test "$(SGMLTOOLS)" != "no"; then \
	  $(SGMLTOOLS) -b txt faq.sgml; \
	else \
	  if test "$(fail_if_missing)" = "yes"; then \
	    echo "Please install sgmltools-lite."; \
	    exit 1; \
	  else \
	    touch $@; \
	    sleep 1; \
	    touch $^; \
	  fi; \
	fi