X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile.am;h=2c196184b91bf9734ad20ffa8e312a75af3aa4b2;hb=85b20fd6ee585f462e012fbcc7f966a81edab2ed;hp=e2e0aa40d26f517d45b8212de24aa35404562b84;hpb=6494ea4c962118de72410f62045603279eb967da;p=sliver-openvswitch.git diff --git a/Makefile.am b/Makefile.am index e2e0aa40d..2c196184b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -50,10 +50,10 @@ EXTRA_DIST = \ INSTALL.RHEL \ INSTALL.SSL \ INSTALL.XenServer \ - INSTALL.bridge \ INSTALL.userspace \ IntegrationGuide \ NOTICE \ + OPENFLOW-1.1+ \ PORTING \ README-gcov \ REPORTING-BUGS \ @@ -106,6 +106,7 @@ ro_shell = printf '\043 Generated automatically -- do not modify! -*- buffer- SUFFIXES += .in .in: + @mkdir -p $$(dirname $@) $(PERL) $(srcdir)/build-aux/soexpand.pl -I$(srcdir) < $< | \ sed \ -e 's,[@]PKIDIR[@],$(PKIDIR),g' \ @@ -147,7 +148,7 @@ dist-hook-git: distfiles (cd datapath && $(MAKE) distfiles); \ (cat distfiles; sed 's|^|datapath/|' datapath/distfiles) | \ sort -u > all-distfiles; \ - (cd $(srcdir) && git ls-files) | grep -v '\.gitignore$$' | \ + (cd $(srcdir) && git ls-files) | grep -vFf $(srcdir)/.non-distfiles | \ sort -u > all-gitfiles; \ comm -1 -3 all-distfiles all-gitfiles > missing-distfiles; \ if test -s missing-distfiles; then \ @@ -169,6 +170,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: @@ -230,3 +245,4 @@ include rhel/automake.mk include xenserver/automake.mk include python/automake.mk include python/compat/automake.mk +include planetlab/automake.mk