X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Makefile.am;h=f0e757118e5bfd58bc4adac1d0e5a010ef6b5df1;hb=8628b0b71d1cf5b3bd7425e50f0aa1435aa38804;hp=689fd6cc3a2aed2b71ec43e0aae8b6138f37b77a;hpb=15b619e29d20708d2ce6946f1c5ec9841c4c822b;p=openvswitch diff --git a/Makefile.am b/Makefile.am index 689fd6cc..f0e75711 100644 --- a/Makefile.am +++ b/Makefile.am @@ -31,9 +31,9 @@ CLEAN_LOCAL = DISTCLEANFILES = EXTRA_DIST = \ CodingStyle \ + DESIGN \ INSTALL.KVM \ INSTALL.Linux \ - INSTALL.OpenFlow \ INSTALL.SSL \ INSTALL.XenServer \ INSTALL.bridge \ @@ -57,6 +57,7 @@ man_MANS = noinst_DATA = noinst_HEADERS = noinst_LIBRARIES = +noinst_man_MANS = noinst_PROGRAMS = noinst_SCRIPTS = OVSIDL_BUILT = @@ -124,6 +125,17 @@ distfiles: Makefile -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t" | sort -u > $@ CLEANFILES += distfiles +# Check that "struct vlog_ratelimit" is always declared "static". +ALL_LOCAL += rate-limit-check +rate-limit-check: + @if test -e $(srcdir)/.git && (git --version) >/dev/null 2>&1 && \ + git --no-pager grep -n -E '^[ ]+struct vlog_rate_limit.*=' $(srcdir); \ + then \ + echo "See above for list of violations of the rule that "; \ + echo "'struct vlog_rate_limit' must always be 'static'"; \ + exit 1; \ + fi + dist-hook: $(DIST_HOOKS) all-local: $(ALL_LOCAL) clean-local: $(CLEAN_LOCAL)