2003-03-01 04:06:37 +01:00
|
|
|
DOC_MODULE=fontconfig
|
|
|
|
DOC2HTML=docbook2html -u
|
|
|
|
DOC2TXT=docbook2txt
|
|
|
|
|
|
|
|
TXT=fontconfig-user.txt fontconfig-devel.txt
|
|
|
|
HTML=fontconfig-user.html fontconfig-devel.html
|
|
|
|
SGML=fontconfig-user.sgml fontconfig-devel.sgml
|
|
|
|
|
|
|
|
DOCDIR=@DOCDIR@
|
|
|
|
TARGET_DIR=$(DOCDIR)
|
|
|
|
|
|
|
|
SUFFIXES=.sgml .txt .html
|
|
|
|
|
|
|
|
.sgml.html:
|
|
|
|
$(RM) $@
|
|
|
|
$(DOC2HTML) $*.sgml
|
|
|
|
$(RM) index.html
|
|
|
|
|
|
|
|
.sgml.txt:
|
|
|
|
$(RM) $@
|
|
|
|
$(DOC2TXT) $*.sgml
|
|
|
|
|
|
|
|
EXTRA_DIST = $(TXT) $(HTML) $(SGML)
|
|
|
|
|
2003-03-01 06:21:02 +01:00
|
|
|
if ENABLE_DOCS
|
|
|
|
DOCS=$(TXT) $(HTML)
|
|
|
|
all-local: all-docs
|
|
|
|
clean-local: clean-docs
|
|
|
|
install-data-local: install-docs
|
|
|
|
else
|
|
|
|
all-local:
|
2003-03-01 04:06:37 +01:00
|
|
|
clean-local:
|
|
|
|
install-data-local:
|
2003-03-01 06:21:02 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
all-docs: $(DOCS)
|
|
|
|
|
|
|
|
clean-docs:
|
|
|
|
rm -f $(DOCS)
|
|
|
|
|
|
|
|
install-docs:
|
2003-03-01 04:06:37 +01:00
|
|
|
$(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)
|
2003-03-01 06:21:02 +01:00
|
|
|
for i in $(DOCS); do \
|
2003-03-01 04:06:37 +01:00
|
|
|
echo '-- Installing'$$i ; \
|
|
|
|
$(INSTALL_DATA) $$i $(DESTDIR)$(TARGET_DIR)/$$i; \
|
|
|
|
done
|