X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile.am;h=71a0652c976e0ae9a22cc699c390d17a103685e1;hb=a64e37a1d3990b9c2524d166119cb5564dc5d96c;hp=689fd6cc3a2aed2b71ec43e0aae8b6138f37b77a;hpb=15b619e29d20708d2ce6946f1c5ec9841c4c822b;p=sliver-openvswitch.git diff --git a/Makefile.am b/Makefile.am index 689fd6cc3..71a0652c9 100644 --- a/Makefile.am +++ b/Makefile.am @@ -31,6 +31,7 @@ CLEAN_LOCAL = DISTCLEANFILES = EXTRA_DIST = \ CodingStyle \ + DESIGN \ INSTALL.KVM \ INSTALL.Linux \ INSTALL.OpenFlow \ @@ -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)