Makefile.am: Exclude third-party code from config.h check.
authorJesse Gross <jesse@nicira.com>
Thu, 6 Dec 2012 22:14:02 +0000 (14:14 -0800)
committerJesse Gross <jesse@nicira.com>
Thu, 6 Dec 2012 22:20:04 +0000 (14:20 -0800)
It doesn't make sense to enforce our rules for code in the third-
party directory.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Makefile.am

index 08cf395..b00b82c 100644 (file)
@@ -175,7 +175,7 @@ config-h-check:
        @cd $(srcdir); \
        if test -e .git && (git --version) >/dev/null 2>&1 && \
           git grep -L '#include <config\.h>' `git ls-files | grep '\.c$$' | \
-               grep -vE '^datapath|^lib/sflow'`; \
+               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 <config.h>."; \