Switch to docbook and split documentation into pieces

This commit is contained in:
Keith Packard 2003-03-01 03:06:37 +00:00
parent 584ac89a01
commit 0da305f7f8
4 changed files with 51 additions and 1467 deletions

View File

@ -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 \

View File

@ -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

35
doc/Makefile.am Normal file
View File

@ -0,0 +1,35 @@
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

File diff suppressed because it is too large Load Diff