REPORTING-BUGS \
SubmittingPatches \
WHY-OVS \
- boot.sh
+ boot.sh \
+ $(MAN_FRAGMENTS)
bin_PROGRAMS =
sbin_PROGRAMS =
bin_SCRIPTS =
dist_scripts_SCRIPTS =
INSTALL_DATA_LOCAL =
man_MANS =
+MAN_FRAGMENTS =
noinst_DATA =
noinst_HEADERS =
noinst_LIBRARIES =
exit 1; \
fi
+if HAVE_GROFF
+ALL_LOCAL += manpage-check
+manpage-check: $(MANS) $(MAN_FRAGMENTS)
+ @manpages=; \
+ for d in $(MANS); do \
+ manpages="$$manpages `test -f $$d || echo $(VPATH)/`$$d"; \
+ done; \
+ LANG=en_US.UTF-8 groff -w mac -w delim -w escape -w input -w missing -w tab -T utf8 -man -p -z $$manpages && touch $@
+CLEANFILES += manpage-check
+endif
+
dist-hook: $(DIST_HOOKS)
all-local: $(ALL_LOCAL)
clean-local: $(CLEAN_LOCAL)
OVS_CHECK_SOCKET_LIBS
OVS_CHECK_LINKER_SECTIONS
OVS_CHECK_XENSERVER_VERSION
+OVS_CHECK_GROFF
OVS_ENABLE_OPTION([-Wall])
OVS_ENABLE_OPTION([-Wno-sign-compare])
lib/dh4096.pem \
lib/dirs.c.in
-EXTRA_DIST += \
+MAN_FRAGMENTS += \
lib/common.man \
lib/common-syn.man \
lib/daemon.man \
fi
AM_CONDITIONAL(
[USE_LINKER_SECTIONS], [test $ovs_cv_use_linker_sections = yes])])
+
+dnl Checks for groff.
+AC_DEFUN([OVS_CHECK_GROFF],
+ [AC_CACHE_CHECK(
+ [for groff],
+ [ovs_cv_groff],
+ [if (groff -v) >/dev/null 2>&1; then
+ ovs_cv_groff=yes
+ else
+ ovs_cv_groff=no
+ fi])
+ AM_CONDITIONAL([HAVE_GROFF], [test "$ovs_cv_groff" = yes])])
ofproto/pinsched.c \
ofproto/pinsched.h
-EXTRA_DIST += ofproto/ofproto-unixctl.man
+MAN_FRAGMENTS += ofproto/ofproto-unixctl.man
ovsdb/trigger.h \
ovsdb/transaction.c \
ovsdb/transaction.h
-EXTRA_DIST += \
+MAN_FRAGMENTS += \
ovsdb/remote-active.man \
ovsdb/remote-passive.man
utilities/ovs-save \
utilities/ovs-tcpundump.1.in \
utilities/ovs-tcpundump.in \
- utilities/ovs-vlan-bugs.man \
utilities/ovs-vlan-test.in \
utilities/ovs-vlan-bug-workaround.8.in \
utilities/ovs-vlan-test.8.in \
utilities/ovs-vsctl.8.in
+MAN_FRAGMENTS += utilities/ovs-vlan-bugs.man
DISTCLEANFILES += \
utilities/ovs-appctl.8 \
utilities/ovs-ctl \