Commit ee535c7a authored by Hiroshi Sumita's avatar Hiroshi Sumita
Browse files

Writes a API document using doxygen.

BUG=None
TEST=Manual

Review URL: https://codereview.appspot.com/6211062
parent b4ab63ad
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -21,8 +21,9 @@

SUBDIRS = \
	data \
	src \
        docs \
	m4 \
	src \
	$(NULL)

pkgconfigdir = $(libdir)/pkgconfig
+13 −4
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@ m4_define([pyzy_released], [1])

m4_define([pyzy_major_version], [0])
m4_define([pyzy_minor_version], [0])
m4_define([pyzy_micro_version], [5])
m4_define([pyzy_micro_version], [6])
m4_define([pyzy_interface_age], [0])
m4_define([pyzy_binary_age],
          [m4_eval(100 * pyzy_minor_version + pyzy_micro_version)])
@@ -181,17 +181,26 @@ AC_ARG_ENABLE(db-open-phrase,
)
AM_CONDITIONAL(PYZY_BUILD_DB_OPEN_PHRASE, [test x"$enable_db_open_phrase" = x"yes" ])

# doxygen
AC_CHECK_PROGS([DOXYGEN], [doxygen])
if test -z "$DOXYGEN"; then
    AC_MSG_WARN([Doxygen not found - continuing without Doxygen support])
fi
AM_CONDITIONAL([HAVE_DOXYGEN], [test -n "$DOXYGEN"])
AM_COND_IF([HAVE_DOXYGEN], [AC_CONFIG_FILES([docs/Doxyfile])])   

# OUTPUT files
AC_CONFIG_FILES([
Makefile
pyzy.spec
pyzy-1.0.pc
src/Makefile
data/Makefile
data/db/Makefile
data/db/android/Makefile
data/db/open-phrase/Makefile
docs/Makefile
m4/Makefile
pyzy-1.0.pc
pyzy.spec
src/Makefile
])

AC_OUTPUT

docs/.gitignore

0 → 100644
+3 −0
Original line number Diff line number Diff line
doxyfile.stamp
Doxyfile
html/

docs/Doxyfile.in

0 → 100644
+1554 −0

File added.

Preview size limit exceeded, changes collapsed.

docs/Makefile.am

0 → 100644
+38 −0
Original line number Diff line number Diff line
# vim:set noet ts=4:
#
# libpyzy - The Chinese PinYin and Bopomofo conversion library.
#
# Copyright (c) 2008-2010 Peng Huang <shawn.p.huang@gmail.com>
#
# This library is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2.1 of the
# License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA

if HAVE_DOXYGEN
directory = $(top_srcdir)/docs/man/man3/

dist_man_MANS = $(directory)/man_page_1.3 $(directory)/man_page_2.3
$(directory)/man_page_1.3: doxyfile.stamp
$(directory)/man_page_2.3: doxyfile.stamp

doxyfile.stamp:
	$(DOXYGEN) Doxyfile
	echo Timestamp > doxyfile.stamp

CLEANFILES = doxyfile.stamp

all-local: doxyfile.stamp
clean-local:
	rm -rf $(top_srcdir)/docs/man
endif
Loading