]> git.proxmox.com Git - mirror_zfs.git/blobdiff - Makefile.am
Verify .gitignore entries
[mirror_zfs.git] / Makefile.am
index 43891af710ce6dff0b21e5fbcd46ba47b779dd48..02e10443485c190bd5c5157f95490eee71f45ab5 100644 (file)
@@ -75,7 +75,7 @@ install-data-hook:
        ln -fs zfs.release spl.release
 endif
 
-codecheck: cstyle shellcheck flake8 mancheck testscheck
+codecheck: cstyle shellcheck flake8 mancheck testscheck vcscheck
 
 checkstyle: codecheck commitcheck
 
@@ -117,6 +117,12 @@ testscheck:
                xargs -r stat -c '%A %n' | \
                awk '{c++; print} END {if(c>0) exit 1}'
 
+vcscheck:
+       @if git rev-parse --git-dir > /dev/null 2>&1; then \
+               git ls-files . --exclude-standard --others | \
+               awk '{c++; print} END {if(c>0) exit 1}' ; \
+       fi
+
 lint: cppcheck paxcheck
 
 cppcheck: