]> git.wh0rd.org - fontconfig.git/blob - doc/Makefile.am
Add --disable-docs flag
[fontconfig.git] / doc / Makefile.am
1 DOC_MODULE=fontconfig
2 DOC2HTML=docbook2html -u
3 DOC2TXT=docbook2txt
4
5 TXT=fontconfig-user.txt fontconfig-devel.txt
6 HTML=fontconfig-user.html fontconfig-devel.html
7 SGML=fontconfig-user.sgml fontconfig-devel.sgml
8
9 DOCDIR=@DOCDIR@
10 TARGET_DIR=$(DOCDIR)
11
12 SUFFIXES=.sgml .txt .html
13
14 .sgml.html:
15 $(RM) $@
16 $(DOC2HTML) $*.sgml
17 $(RM) index.html
18
19 .sgml.txt:
20 $(RM) $@
21 $(DOC2TXT) $*.sgml
22
23 EXTRA_DIST = $(TXT) $(HTML) $(SGML)
24
25 if ENABLE_DOCS
26 DOCS=$(TXT) $(HTML)
27 all-local: all-docs
28 clean-local: clean-docs
29 install-data-local: install-docs
30 else
31 all-local:
32 clean-local:
33 install-data-local:
34 endif
35
36 all-docs: $(DOCS)
37
38 clean-docs:
39 rm -f $(DOCS)
40
41 install-docs:
42 $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)
43 for i in $(DOCS); do \
44 echo '-- Installing'$$i ; \
45 $(INSTALL_DATA) $$i $(DESTDIR)$(TARGET_DIR)/$$i; \
46 done