From fbc93b968c1b0e7533081b038cc86cf88158b3e4 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Thu, 13 Apr 2023 21:14:52 +0200 Subject: [PATCH] Wording et utilisation de SRCS --- Makefile | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index 33c087d5..06d440ce 100644 --- a/Makefile +++ b/Makefile @@ -149,13 +149,13 @@ spell: ensure_test_prerequisites $(DESTS) .PHONY: line-length line-length: - @echo "Checking all files using .scripts/line-length.py..." - @python .scripts/line-length.py *.po */*.po + @echo Checking line length... + @python .scripts/line-length.py $(SRCS) .PHONY: sphinx-lint sphinx-lint: ensure_test_prerequisites - @echo "Checking all files using sphinx-lint..." - @sphinx-lint --enable all --disable line-too-long *.po */*.po + @echo Checking reStructuredText syntax... + @sphinx-lint --enable all --disable line-too-long $(SRCS) $(POSPELL_TMP_DIR)/%.po.out: %.po dict @echo "Pospell checking $<..." @@ -168,27 +168,28 @@ fuzzy: ensure_test_prerequisites .PHONY: check-headers check-headers: - @grep -L '^# Copyright (C) [0-9-]*, Python Software Foundation' *.po */*.po | while read -r file;\ + @echo Checking po headers... + @grep -L '^# Copyright (C) [0-9-]*, Python Software Foundation' $(SRCS) | while read -r file;\ do \ echo "Please update the po comment in $$file"; \ done - @grep -L '^"Project-Id-Version: Python 3\\n"$$' *.po */*.po | while read -r file;\ + @grep -L '^"Project-Id-Version: Python 3\\n"$$' $(SRCS) | while read -r file;\ do \ echo "Please update the 'Project-Id-Version' header in $$file"; \ done - @grep -L '^"Language: fr\\n"$$' *.po */*.po | while read -r file;\ + @grep -L '^"Language: fr\\n"$$' $(SRCS) | while read -r file;\ do \ echo "Please update the 'Language' header in $$file"; \ done - @grep -L '^"Language-Team: FRENCH \\n"' *.po */*.po | while read -r file;\ + @grep -L '^"Language-Team: FRENCH \\n"' $(SRCS) | while read -r file;\ do \ echo "Please update the 'Language-Team' header in $$file"; \ done .PHONY: check-colons check-colons: - @echo "Checking all files using .scripts/check-colon.py..." - @python .scripts/check-colon.py --check *.po */*.po + @echo Checking colons... + @python .scripts/check-colon.py --check $(SRCS) .PHONY: verifs verifs: spell line-length check-headers check-colons sphinx-lint