X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile.am;h=b6c13a31c5b1006e89d2b8b9687b4890911056c8;hb=d56748e8b43e180b966df641caf8767782e6b2f3;hp=b00b82ccb3b60ed0be0cfe9e18277b884b0778bb;hpb=fedbc4d62ec34af4fe1a48895b18c45e1c13e931;p=sliver-openvswitch.git diff --git a/Makefile.am b/Makefile.am index b00b82ccb..b6c13a31c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -50,12 +50,13 @@ EXTRA_DIST = \ INSTALL.RHEL \ INSTALL.SSL \ INSTALL.XenServer \ - INSTALL.bridge \ INSTALL.userspace \ IntegrationGuide \ NOTICE \ + OPENFLOW-1.1+ \ PORTING \ README-gcov \ + README-lisp \ REPORTING-BUGS \ SubmittingPatches \ WHY-OVS \ @@ -174,7 +175,7 @@ ALL_LOCAL += config-h-check config-h-check: @cd $(srcdir); \ if test -e .git && (git --version) >/dev/null 2>&1 && \ - git grep -L '#include ' `git ls-files | grep '\.c$$' | \ + git --no-pager grep -L '#include ' `git ls-files | grep '\.c$$' | \ grep -vE '^datapath|^lib/sflow|^third-party'`; \ then \ echo "See above for list of violations of the rule that"; \ @@ -195,6 +196,19 @@ rate-limit-check: fi .PHONY: rate-limit-check +# Check that assert.h is not used outside a whitelist of files. +ALL_LOCAL += check-assert-h-usage +check-assert-h-usage: + @if test -e $(srcdir)/.git && (git --version) >/dev/null 2>&1 && \ + (cd $(srcdir) && git --no-pager grep -l -E '[<]assert.h[>]') | \ + $(EGREP) -v '^lib/(sflow_receiver|vlog|worker).c$$|^tests/'; \ + then \ + echo "Files listed above unexpectedly #include <""assert.h"">."; \ + echo "Please use ovs_assert (from util.h) instead of assert."; \ + exit 1; \ + fi +.PHONY: check-assert-h-usage + if HAVE_GROFF ALL_LOCAL += manpage-check manpage-check: $(man_MANS) $(dist_man_MANS) $(noinst_man_MANS)