Skip to content

Commit

Permalink
Merge pull request #66 from kronosnet/doxyfication
Browse files Browse the repository at this point in the history
Doxyfication
  • Loading branch information
fabbione committed Oct 30, 2017
2 parents 80aecab + 562003e commit 8500b3f
Show file tree
Hide file tree
Showing 66 changed files with 3,017 additions and 310 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -48,3 +48,6 @@ kronosnet.spec
test-driver
*.trs
*.log
Doxyfile
doxyfile.stamp
xml/
12 changes: 12 additions & 0 deletions configure.ac
Expand Up @@ -65,6 +65,16 @@ AC_PROG_INSTALL
AC_PROG_MAKE_SET
PKG_PROG_PKG_CONFIG
AC_CHECK_PROGS([PUBLICAN], [publican], [:])
AC_CHECK_PROGS([DOXYGEN], [doxygen])
AC_CHECK_PROGS([DOXY2MAN], [doxy2man])

manpageupdates=1
if test "x$DOXYGEN" = "x" || test "x$DOXY2MAN" = "x"; then
manpageupdates=0;
fi

AM_CONDITIONAL([MANPAGEUPDATES], [test $manpageupdates -gt 0])

AC_CHECK_PROGS([VALGRIND_EXEC], [valgrind])
AM_CONDITIONAL([HAS_VALGRIND], [test x$VALGRIND_EXEC != "x"])

Expand Down Expand Up @@ -493,6 +503,8 @@ AC_CONFIG_FILES([
libknet/Makefile
libknet/libknet.pc
libknet/tests/Makefile
libknet/man/Doxyfile
libknet/man/Makefile
docs/Makefile
poc-code/Makefile
poc-code/iov-hash/Makefile
Expand Down
1 change: 1 addition & 0 deletions kronosnet.spec.in
Expand Up @@ -355,6 +355,7 @@ Requires: pkgconfig
%{_libdir}/libknet.so
%{_includedir}/libknet.h
%{_libdir}/pkgconfig/libknet.pc
%{_mandir}/man3/*.3.gz

%changelog
* @date@ Autotools generated version <nobody@nowhere.org> - @version@-1-@numcomm@.@alphatag@.@dirty@
Expand Down
18 changes: 17 additions & 1 deletion libknet/Makefile.am
Expand Up @@ -15,7 +15,7 @@ SYMFILE = libknet_exported_syms

EXTRA_DIST = $(SYMFILE)

SUBDIRS = . tests
SUBDIRS = . tests man

libversion = 1:0:0

Expand Down Expand Up @@ -96,3 +96,19 @@ libknet_la_LDFLAGS = -Wl,--version-script=$(srcdir)/$(SYMFILE) \
-version-number $(libversion)

libknet_la_LIBADD = $(dl_LIBS) $(pthread_LIBS) $(rt_LIBS) $(m_LIBS)

dist_man_MANS = man

update-man-pages: doxyfile.stamp

doxyfile.stamp: Doxyfile
if MANPAGEUPDATES
$(DOXYGEN) Doxyfile
$(DOXY2MAN) -o $(abs_srcdir)/man -s 3 --short-pkg @PACKAGE_NAME@ --pkg "Kronosnet Programmer's Manual" $(builddir)/xml/libknet_8h.xml
else
@echo this system does not have doxy2man or doxygen installed. Unable to update man pages automatically.
endif
touch doxyfile.stamp

clean-local:
rm -rf doxyfile.stamp xml

0 comments on commit 8500b3f

Please sign in to comment.