diff --git a/Makefile.lint b/Makefile.lint index f4a046b..e645e34 100644 --- a/Makefile.lint +++ b/Makefile.lint @@ -3,7 +3,7 @@ CURMAKE = $(MAKE) -s -f Makefile.lint -all: deadlinks mandoc_check podchecker shellcheck cppcheck \ +all: deadlinks mancheck podchecker shellcheck cppcheck \ flawfinder longlines ###################################################################### @@ -25,10 +25,9 @@ deadlinks: @echo "=======> Check for dead links" @$(CURMAKE) curllinks | grep -v '^\[200\]' | sort -u -mandoc_check: +mancheck: @echo "=======> Check man pages for syntax errors" - @find . -not -path '*/.*' -type f -name '*.[1-9]' \ - -exec mandoc -T lint {} + + @mandoc -T lint Pkgfile.5 pkgmk.8 pkgmk.conf.5 podchecker: @echo "=======> Check PODs for syntax errors" @@ -36,8 +35,7 @@ podchecker: shellcheck: @echo "=======> Check shell scripts for syntax errors" - @grep -m1 -Irl '^#\s*!/bin/sh' --exclude-dir=.git* \ - | xargs -L10 -r shellcheck -s sh + @shellcheck -s sh pkgmk cppcheck: @echo "=======> Static C/C++ code analysis" @@ -55,7 +53,7 @@ longlines: ###################################################################### .PHONY: all greplinks curllinks deadlinks \ - mandoc_check podchecker shellcheck cppcheck flawfinder longlines + mancheck podchecker shellcheck cppcheck flawfinder longlines # vim: cc=72 tw=70 # End of file.