Commit 0da305f7 authored by Keith Packard's avatar Keith Packard

Switch to docbook and split documentation into pieces

parent 584ac89a
......@@ -21,7 +21,7 @@
# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
SUBDIRS=fontconfig fc-lang src fc-cache fc-list
SUBDIRS=fontconfig fc-lang src fc-cache fc-list doc
EXTRA_DIST = \
fontconfig.pc.in \
......
......@@ -289,6 +289,20 @@ AC_SUBST(CONFDIR)
ORTH_FILES=`cd fc-lang && echo *.orth`
AC_SUBST(ORTH_FILES)
#
# Figure out where to install documentation
#
AC_ARG_WITH(docdir, [ --with-docdir=DIR Use DIR to store documentation files (default ${datadir}/doc/fontconfig)], confdir="$withval")
if test "x$with_docdir" = "x" ; then
DOCDIR='${datadir}/doc/fontconfig'
else
DOCDIR=$with_docdir
fi
AC_SUBST(DOCDIR)
AC_OUTPUT([
Makefile
fontconfig/Makefile
......@@ -296,6 +310,7 @@ fc-lang/Makefile
src/Makefile
fc-cache/Makefile
fc-list/Makefile
doc/Makefile
fontconfig.spec
fontconfig.pc
fonts.conf
......
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)
all-local: $(TXT) $(HTML)
clean-local:
rm -f $(TXT) $(HTML)
install-data-local:
$(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)
for i in $(TXT) $(HTML); do \
echo '-- Installing'$$i ; \
$(INSTALL_DATA) $$i $(DESTDIR)$(TARGET_DIR)/$$i; \
done
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment