Browse Source

Add doxygen support

Yann Weber 7 years ago
parent
commit
defd1864d6
5 changed files with 2449 additions and 0 deletions
  1. 4
    0
      Makefile.am
  2. 18
    0
      configure.ac
  3. 2407
    0
      docs/Doxyfile.in
  4. 19
    0
      docs/Makefile.am
  5. 1
    0
      tests/ttail_init_check.c

+ 4
- 0
Makefile.am View File

1
 SUBDIRS = src . tests
1
 SUBDIRS = src . tests
2
+CLEANFILES = 
2
 #ACLOCAL_AMFLAGS = -I m4
3
 #ACLOCAL_AMFLAGS = -I m4
4
+if HAVE_DOXYGEN
5
+SUBDIRS += docs
6
+endif

+ 18
- 0
configure.ac View File

32
 AC_PROG_MAKE_SET
32
 AC_PROG_MAKE_SET
33
 AC_PROG_RANLIB
33
 AC_PROG_RANLIB
34
 
34
 
35
+AC_CHECK_PROGS([DOXYGEN], [doxygen])
36
+if test -z "$DOXYGEN";
37
+	then AC_MSG_WARN([Doxygen not found - continuing without Doxygen support])
38
+fi
39
+
40
+AC_CHECK_PROGS([DOXYGEN], [doxygen])
41
+if test -z "$DOXYGEN";
42
+	then AC_MSG_WARN([Doxygen not found - continuing without Doxygen support])
43
+fi
44
+AC_CHECK_PROGS([GIT], [git])
45
+if test -z "$DOXYGEN";
46
+	then AC_MSG_WARN([git not found - continuing without Doxygen support])
47
+fi
48
+
35
 # Checks for libraries.
49
 # Checks for libraries.
36
 AC_SEARCH_LIBS([dlopen], [dl dld], [], [
50
 AC_SEARCH_LIBS([dlopen], [dl dld], [], [
37
 	AC_MSG_ERROR([unable to find the dlopen() function])
51
 	AC_MSG_ERROR([unable to find the dlopen() function])
71
 		src/Makefile
85
 		src/Makefile
72
 		tests/Makefile])
86
 		tests/Makefile])
73
 
87
 
88
+AM_CONDITIONAL([HAVE_DOXYGEN],
89
+[test -n "$DOXYGEN"])AM_COND_IF([HAVE_DOXYGEN], [AC_CONFIG_FILES([docs/Doxyfile
90
+docs/Makefile])])
91
+
74
 AC_OUTPUT
92
 AC_OUTPUT

+ 2407
- 0
docs/Doxyfile.in
File diff suppressed because it is too large
View File


+ 19
- 0
docs/Makefile.am View File

1
+if HAVE_DOXYGEN
2
+CLEANFILES = doxyfile.stamp
3
+directory = $(top_srcdir)/docs/man/man3/
4
+dist_man_MANS = $(directory)/man_page_1.3 $(directory)/man_page_2.3
5
+
6
+$(directory)/man_page_1.3: doxyfile.stamp
7
+$(directory)/man_page_2.3: doxyfile.stamp
8
+
9
+doxyfile.stamp:
10
+	$(DOXYGEN) Doxyfile
11
+	echo Timestamp > doxyfile.stamp
12
+
13
+
14
+all-local: doxyfile.stamp doc
15
+doc: doxyfile.stamp
16
+
17
+clean-local:
18
+	-rm -rf $(top_srcdir)/docs/html $(top_srcdir)/docs/man $(top_srcdir)/docs/doxygen_sqlite3.db
19
+endif

+ 1
- 0
tests/ttail_init_check.c View File

37
 {
37
 {
38
 	char *fname;
38
 	char *fname;
39
 	int ret;
39
 	int ret;
40
+	/** @todo replace by mkstemp */
40
 	fname = tempnam(NULL, "ttail_check");
41
 	fname = tempnam(NULL, "ttail_check");
41
 
42
 
42
 	ret = ttail_add_logfile(ttail, fname);
43
 	ret = ttail_add_logfile(ttail, fname);

Loading…
Cancel
Save