Add doxygen support
This commit is contained in:
parent
ce41eddb7a
commit
defd1864d6
5 changed files with 2449 additions and 0 deletions
|
|
@ -1,2 +1,6 @@
|
|||
SUBDIRS = src . tests
|
||||
CLEANFILES =
|
||||
#ACLOCAL_AMFLAGS = -I m4
|
||||
if HAVE_DOXYGEN
|
||||
SUBDIRS += docs
|
||||
endif
|
||||
|
|
|
|||
18
configure.ac
18
configure.ac
|
|
@ -32,6 +32,20 @@ AM_PROG_CC_C_O
|
|||
AC_PROG_MAKE_SET
|
||||
AC_PROG_RANLIB
|
||||
|
||||
AC_CHECK_PROGS([DOXYGEN], [doxygen])
|
||||
if test -z "$DOXYGEN";
|
||||
then AC_MSG_WARN([Doxygen not found - continuing without Doxygen support])
|
||||
fi
|
||||
|
||||
AC_CHECK_PROGS([DOXYGEN], [doxygen])
|
||||
if test -z "$DOXYGEN";
|
||||
then AC_MSG_WARN([Doxygen not found - continuing without Doxygen support])
|
||||
fi
|
||||
AC_CHECK_PROGS([GIT], [git])
|
||||
if test -z "$DOXYGEN";
|
||||
then AC_MSG_WARN([git not found - continuing without Doxygen support])
|
||||
fi
|
||||
|
||||
# Checks for libraries.
|
||||
AC_SEARCH_LIBS([dlopen], [dl dld], [], [
|
||||
AC_MSG_ERROR([unable to find the dlopen() function])
|
||||
|
|
@ -71,4 +85,8 @@ AC_CONFIG_FILES([Makefile
|
|||
src/Makefile
|
||||
tests/Makefile])
|
||||
|
||||
AM_CONDITIONAL([HAVE_DOXYGEN],
|
||||
[test -n "$DOXYGEN"])AM_COND_IF([HAVE_DOXYGEN], [AC_CONFIG_FILES([docs/Doxyfile
|
||||
docs/Makefile])])
|
||||
|
||||
AC_OUTPUT
|
||||
|
|
|
|||
2407
docs/Doxyfile.in
Normal file
2407
docs/Doxyfile.in
Normal file
File diff suppressed because it is too large
Load diff
19
docs/Makefile.am
Normal file
19
docs/Makefile.am
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
if HAVE_DOXYGEN
|
||||
CLEANFILES = doxyfile.stamp
|
||||
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
|
||||
|
||||
|
||||
all-local: doxyfile.stamp doc
|
||||
doc: doxyfile.stamp
|
||||
|
||||
clean-local:
|
||||
-rm -rf $(top_srcdir)/docs/html $(top_srcdir)/docs/man $(top_srcdir)/docs/doxygen_sqlite3.db
|
||||
endif
|
||||
|
|
@ -37,6 +37,7 @@ START_TEST (test_init_nonexist_logfilename)
|
|||
{
|
||||
char *fname;
|
||||
int ret;
|
||||
/** @todo replace by mkstemp */
|
||||
fname = tempnam(NULL, "ttail_check");
|
||||
|
||||
ret = ttail_add_logfile(ttail, fname);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue