fontconfig/doc/Makefile.am

47 lines
803 B
Makefile
Raw Normal View History

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:
clean-local:
install-data-local:
2003-03-01 06:21:02 +01:00
endif
all-docs: $(DOCS)
clean-docs:
rm -f $(DOCS)
install-docs:
$(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)
2003-03-01 06:21:02 +01:00
for i in $(DOCS); do \
echo '-- Installing'$$i ; \
$(INSTALL_DATA) $$i $(DESTDIR)$(TARGET_DIR)/$$i; \
done