aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2024-02-26 22:11:13 +0100
committerRobin Jarry <robin@jarry.cc>2024-03-04 22:30:01 +0100
commit963633eb83dc19089236ac78ba9d823e7e2a6df9 (patch)
tree042172178e6b1388efada29315201fcc559fb7f9 /contrib
parent65571b67d7d310089e40d13f26b06cfcb85465bb (diff)
downloadaerc-963633eb83dc19089236ac78ba9d823e7e2a6df9.tar.gz
mk: add validate target
Instead of hiding the actual checks deep into the CI framework and into the sendemail-validate hook, add a validate make target that uses proper variables and runs the required checks. Use it in the sendemail-validate hook and the CI builds. Signed-off-by: Robin Jarry <robin@jarry.cc> Reviewed-by: Bence Ferdinandy <bence@ferdinandy.com>
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/sendemail-validate4
1 files changed, 1 insertions, 3 deletions
diff --git a/contrib/sendemail-validate b/contrib/sendemail-validate
index ae29d05c..8f0af2d5 100755
--- a/contrib/sendemail-validate
+++ b/contrib/sendemail-validate
@@ -30,11 +30,9 @@ validate_patch () {
git am -3 "$file"
}
-export CFLAGS="-O0 -g -std=c99 -Wall -Wextra -Wconversion -Werror -Wformat-security -Wstack-protector -Wpedantic -Wmissing-prototypes"
-
validate_series () {
command -v gmake >/dev/null 2>&1 && make="gmake" || make="make"
- $make all tests lint check-patches
+ $make validate
}
# main -------------------------------------------------------------------------