X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile.am;h=deae5127d747f5f1dffa17a379692eaac8b1bcb9;hb=db5ce51427906ed54aa3e8e1dffc0ba6d908aa8c;hp=689fd6cc3a2aed2b71ec43e0aae8b6138f37b77a;hpb=815bba308c075c0caa23972f4f50baea334e0199;p=sliver-openvswitch.git diff --git a/Makefile.am b/Makefile.am index 689fd6cc3..deae5127d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -124,6 +124,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)