]> git.wh0rd.org - fontconfig.git/blob - doc/Makefile.am
Switch to docbook and split documentation into pieces
[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 all-local: $(TXT) $(HTML)
26
27 clean-local:
28 rm -f $(TXT) $(HTML)
29
30 install-data-local:
31 $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)
32 for i in $(TXT) $(HTML); do \
33 echo '-- Installing'$$i ; \
34 $(INSTALL_DATA) $$i $(DESTDIR)$(TARGET_DIR)/$$i; \
35 done