]> git.wh0rd.org - fontconfig.git/blame - doc/Makefile.am
Add func doc creation program edit-sgml
[fontconfig.git] / doc / Makefile.am
CommitLineData
0da305f7
KP
1DOC_MODULE=fontconfig
2DOC2HTML=docbook2html -u
3DOC2TXT=docbook2txt
4
5TXT=fontconfig-user.txt fontconfig-devel.txt
6HTML=fontconfig-user.html fontconfig-devel.html
7SGML=fontconfig-user.sgml fontconfig-devel.sgml
8
9DOCDIR=@DOCDIR@
10TARGET_DIR=$(DOCDIR)
11
12SUFFIXES=.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
23EXTRA_DIST = $(TXT) $(HTML) $(SGML)
24
9238fc06
KP
25if ENABLE_DOCS
26DOCS=$(TXT) $(HTML)
27all-local: all-docs
28clean-local: clean-docs
29install-data-local: install-docs
30else
31all-local:
0da305f7 32clean-local:
0da305f7 33install-data-local:
9238fc06
KP
34endif
35
36all-docs: $(DOCS)
37
38clean-docs:
39 rm -f $(DOCS)
40
41install-docs:
0da305f7 42 $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)
9238fc06 43 for i in $(DOCS); do \
0da305f7
KP
44 echo '-- Installing'$$i ; \
45 $(INSTALL_DATA) $$i $(DESTDIR)$(TARGET_DIR)/$$i; \
46 done