commit e592a3c60f0e036350f77b5451feea8e686b5122
parent 782bbe2c6cece428b3ae1a8b2996d2d737ddbfa4
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Wed, 22 Mar 2023 10:53:11 +0100
Add a lint target to the POSIX Makefile
It checks the conformity of the make.sh script
Diffstat:
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
@@ -101,6 +101,9 @@ clean: clean_test
distclean: clean
@rm -f $(DEP) $(TEST_DEP)
+lint:
+ @shellcheck -o all make.sh
+
################################################################################
# Test
################################################################################
diff --git a/make.sh b/make.sh
@@ -57,7 +57,6 @@ run_test()
printf "\e[1;32mOK\e[m\n"
else
printf "\e[1;31mErreur\e[m\n"
- n=$((n+1))
fi
done
}