]> git.wh0rd.org - fontconfig.git/blob - doc/Makefile.am
Add lots more function documentation
[fontconfig.git] / doc / Makefile.am
1 DOC_MODULE=fontconfig
2 DOC2HTML=docbook2html
3 DOC2TXT=docbook2txt
4 DOC2MAN=docbook2man
5
6 TXT=fontconfig-user.txt fontconfig-devel.txt
7 HTML=fontconfig-user/index.html fontconfig-devel/index.html
8 SGML=fontconfig-user.sgml fontconfig-devel.sgml
9
10 DOC_FUNCS_FNCS=\
11 fcmatrix.fncs \
12 fccharset.fncs \
13 fcvalue.fncs \
14 fcpattern.fncs \
15 fcfontset.fncs \
16 fcobjectset.fncs \
17 fcobjecttype.fncs \
18 fcconstant.fncs \
19 fcblanks.fncs \
20 fcconfig.fncs
21
22 DOC_FUNCS_SGML=\
23 fcmatrix.sgml \
24 fccharset.sgml \
25 fcvalue.sgml \
26 fcpattern.sgml \
27 fcfontset.sgml \
28 fcobjectset.sgml \
29 fcobjecttype.sgml \
30 fcconstant.sgml \
31 fcblanks.sgml \
32 fcconfig.sgml
33
34 man3_MANS= \
35 FcCharSetAddChar.3 \
36 FcCharSetCopy.3 \
37 FcCharSetCount.3 \
38 FcCharSetCreate.3 \
39 FcCharSetDestroy.3 \
40 FcCharSetEqual.3 \
41 FcCharSetFirstPage.3 \
42 FcCharSetHasChar.3 \
43 FcCharSetIntersect.3 \
44 FcCharSetIntersectCount.3 \
45 FcCharSetIsSubset.3 \
46 FcCharSetNextPage.3 \
47 FcCharSetSubtract.3 \
48 FcCharSetSubtractCount.3 \
49 FcCharSetUnion.3 \
50 FcMatrixCopy.3 \
51 FcMatrixEqual.3 \
52 FcMatrixInit.3 \
53 FcMatrixMultiply.3 \
54 FcMatrixRotate.3 \
55 FcMatrixScale.3 \
56 FcMatrixShear.3 \
57 FcValueDestroy.3 \
58 FcValueSave.3
59
60 noinst_PROGRAMS=edit-sgml
61 edit_sgml_SOURCES=edit-sgml.c
62
63 DOCDIR=@DOCDIR@
64 TARGET_DIR=$(DOCDIR)
65
66 SUFFIXES=.fncs .sgml .txt .html
67
68 .fncs.sgml:
69 $(RM) $@
70 ./edit-sgml func.sgml < $*.fncs > $*.sgml
71
72 .sgml.txt:
73 $(RM) $@
74 $(DOC2TXT) $*.sgml
75
76 EXTRA_DIST = $(TXT) $(HTML) $(SGML) $(man3_MANS)
77
78 if ENABLE_DOCS
79 DOCS=$(TXT) $(HTML)
80 all-local: all-local-docs
81 clean-local: clean-local-docs
82 install-data-local: install-local-docs
83 else
84 all-local:
85 clean-local:
86 install-data-local:
87 endif
88
89 $(man3_MANS): manpage.refs
90
91 $(DOCS): $(DOC_FUNCS_SGML)
92
93 manpage.refs: fontconfig-devel.sgml $(DOC_FUNCS_SGML)
94 $(DOC2MAN) fontconfig-devel.sgml
95
96 $(DOC_FUNCS_SGML): edit-sgml func.sgml
97
98 all-local-docs: $(DOCS)
99
100 clean-local-docs:
101 rm -f $(DOCS)
102
103 fontconfig-devel/index.html: fontconfig-devel.sgml
104 $(RM) -rf fontconfig-devel
105 docbook2html -o fontconfig-devel fontconfig-devel.sgml
106
107 fontconfig-user/index.html: fontconfig-user.sgml
108 $(RM) -rf fontconfig-user
109 docbook2html -o fontconfig-user fontconfig-user.sgml
110
111 install-local-docs:
112 $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)
113 for i in $(DOCS); do \
114 echo '-- Installing'$$i ; \
115 $(INSTALL_DATA) $$i $(DESTDIR)$(TARGET_DIR)/$$i; \
116 done