X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=Makefile.am;h=2090501cf4e7398cbea00f1a80ca3d4442e14437;hb=7588b571759fe4aff24e76096640eb073fc90a05;hp=5e449d6d3adc71ce1b0084ebbdfd94eb7ff58fe9;hpb=b2df0225a3575e2a15cdf67adc4b2dd9656fed19;p=openvswitch diff --git a/Makefile.am b/Makefile.am index 5e449d6d..2090501c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -45,7 +45,8 @@ EXTRA_DIST = \ REPORTING-BUGS \ SubmittingPatches \ WHY-OVS \ - boot.sh + boot.sh \ + $(MAN_FRAGMENTS) bin_PROGRAMS = sbin_PROGRAMS = bin_SCRIPTS = @@ -57,6 +58,7 @@ dist_sbin_SCRIPTS = dist_scripts_SCRIPTS = INSTALL_DATA_LOCAL = man_MANS = +MAN_FRAGMENTS = noinst_DATA = noinst_HEADERS = noinst_LIBRARIES = @@ -82,6 +84,7 @@ EXTRA_DIST += \ soexpand.pl ro_c = echo '/* -*- mode: c; buffer-read-only: t -*- */' +ro_shell = printf '\043 Generated automatically -- do not modify! -*- buffer-read-only: t -*-\n' SUFFIXES += .in .in: @@ -147,6 +150,17 @@ rate-limit-check: 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)