]> git.proxmox.com Git - mirror_ovs.git/blobdiff - Makefile.am
Makefile: Break the build if .gitignore files are distributed.
[mirror_ovs.git] / Makefile.am
index cdf42d3ad2449a6077a69a97672d8edde0048670..90f5c03538112deb6f88000ed675efbda97e208f 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2007-2016 Nicira, Inc.
+# Copyright (C) 2007-2017 Nicira, Inc.
 #
 # Copying and distribution of this file, with or without modification,
 # are permitted in any medium without royalty provided the copyright
@@ -203,6 +203,11 @@ dist-hook-git: distfiles
            cat missing-distfiles; \
            exit 1; \
          fi; \
+         if LC_ALL=C grep '\.gitignore$$' all-distfiles; then \
+           echo "See above for list of files that are distributed but"; \
+           echo "should not be."; \
+           exit 1; \
+         fi \
        fi
 CLEANFILES += all-distfiles all-gitfiles missing-distfiles
 # The following is based on commands for the Automake "distdir" target.