X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Makefile.am;h=2090501cf4e7398cbea00f1a80ca3d4442e14437;hb=75a75043564dc9b002fffa6c6ad71e0d4d5c892e;hp=91218e14ace0b7cc97babb88452159d65c56d66a;hpb=cbaa4ffe9b72904a7dad8ba23fa13cf2783b26c9;p=openvswitch diff --git a/Makefile.am b/Makefile.am index 91218e14..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 = @@ -148,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)