X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile.am;h=5dce7aa81b4c5989a4079c84e461a8785851b0f6;hb=67680b012be30d9c26eab999b83b08c6eb32dbd2;hp=887b1d7617193cf813ebf4c72ad43cbb3d8a2a36;hpb=8306c4f814416edfe36a78ed5cc1f862b689ff22;p=sliver-openvswitch.git diff --git a/Makefile.am b/Makefile.am index 887b1d761..5dce7aa81 100644 --- a/Makefile.am +++ b/Makefile.am @@ -43,17 +43,20 @@ EXTRA_DIST = \ DESIGN \ FAQ \ INSTALL \ + INSTALL.Debian \ + INSTALL.Fedora \ INSTALL.KVM \ INSTALL.Libvirt \ 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 \ @@ -168,6 +171,20 @@ CLEANFILES += distfiles endif .PHONY: dist-hook-git +# Check that every .c file includes . +ALL_LOCAL += config-h-check +config-h-check: + @cd $(srcdir); \ + if test -e .git && (git --version) >/dev/null 2>&1 && \ + 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"; \ + echo "every C source file must #include ."; \ + exit 1; \ + fi +.PHONY: config-h-check + # Check that "struct vlog_ratelimit" is always declared "static". ALL_LOCAL += rate-limit-check rate-limit-check: @@ -180,6 +197,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) @@ -211,6 +241,11 @@ install-data-local: $(INSTALL_DATA_LOCAL) uninstall-local: $(UNINSTALL_LOCAL) .PHONY: $(DIST_HOOKS) $(CLEAN_LOCAL) $(INSTALL_DATA_LOCAL) $(UNINSTALL_LOCAL) +modules_install: +if LINUX_ENABLED + cd datapath/linux && $(MAKE) modules_install +endif + include lib/automake.mk include ofproto/automake.mk include utilities/automake.mk