Skip to content

Commit a20cc8e

Browse files
committed
Update makefile
Update makefile Signed-off-by: Bensuperpc <[email protected]>
1 parent 58a51ac commit a20cc8e

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Makefile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ dist-full: clean
6363
@echo "$(PROJECT_NAME)-full-$(VERSION).tar.xz done"
6464

6565
check:
66+
@find . -type f \( -name "*.py" -o -name "*.py" \) ! -path "*./git/*" ! -path "*/install.sh" ! -path "*/uninstall.sh" \
67+
! -path "*/Bash-Snippet/*" ! -path "*/git/git-scripts/*" ! -path "*/git/git-extras/*" \
68+
! -path "*/git/git-extra-commands/*" ! -path "*/cryptography/cryptr/*" \
69+
! -path "*/bash-scripts/*" ! -path "*/fff/*" ! -path "*/shell-scripts/*" -print0 | xargs -0 -P"$(shell nproc)" -I{} python -m compileall -q "{}"
70+
@echo "Python syntax check: done"
6671
@find . -type f \( -name "*.sh" -o -name "*.bash" \) ! -path "*./git/*" ! -path "*/install.sh" ! -path "*/uninstall.sh" \
6772
! -path "*/Bash-Snippet/*" ! -path "*/git/git-scripts/*" ! -path "*/git/git-extras/*" \
6873
! -path "*/git/git-extra-commands/*" ! -path "*/cryptography/cryptr/*" \
@@ -75,8 +80,10 @@ check:
7580
@echo "Bash syntax check: done"
7681

7782
check-all:
78-
@find . -type f \( -name "*.sh" -o -name "*.bash" \) -print0 | xargs -0 -P"$(shell nproc)" -I{} $(SHELL) -n "{}"
79-
@find . -type f \( -name "*.sh" -o -name "*.bash" \) -print0 | xargs -0 -P"$(shell nproc)" -I{} \
83+
@find . -type f \( -name "*.py" -o -name "*.py" \) -print0 | xargs -0 -P"$(shell nproc)" -I{} python -m compileall -q "{}"
84+
@echo "Python syntax check: done"
85+
@find . -type f \( -name "*.sh" -o -name "*.bash" \) -print0 | xargs -0 -P"$(shell nproc)" -I{} $(SHELL) -n "{}"
86+
@find . -type f \( -name "*.sh" -o -name "*.bash" \) -print0 | xargs -0 -P"$(shell nproc)" -I{} \
8087
shellcheck --check-sourced --color=auto --format=gcc --severity=warning --shell=bash --enable=all "{}"
8188
@echo "Bash syntax check: done"
8289

0 commit comments

Comments
 (0)