rm -f bin/modules/loghelp
rm -f bin/loghelp
-all-local:
+all-local: doxyfile.stamp
test -d bin/modules || mkdir bin/modules
ln -fs ../logedit bin/modules/
ln -fs ../loggraph bin/modules/
ln -fs ../loghelp bin/modules/
ln -fs ../lognet bin/modules/
-
-CLEANFILES = \
- %.o \
- %.bak \
- %~
clean-am: \
clean-loggraph-extra \
clean-loghelp-extra
rm -rf bin/modules
+CLEANFILES = \
+ %.o \
+ %.bak \
+ %~ \
+ doxyfile.stamp
+
+if HAVE_DOXYGEN
+
+directory = $(top_srcdir)/doc/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
+
+clean-local:
+ rm -rf $(top_srcdir)/doc/man
+
+endif
+
dist_noinst_SCRIPTS = autogen.sh
[MOCDIR='/usr/bin'])
AC_SUBST([MOCDIR])
+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([Doxyfile])])
AC_OUTPUT