include Makefile.boilerplate
check: check-ansible
+ if command -v mdl >/dev/null; then make check-mdl; fi
+ if command -v shellcheck >/dev/null; then make check-shellcheck; fi
+
+check-mdl:
+ mdl -g -r '~MD013,~MD029' -w .
+
+check-shellcheck:
+ shellcheck \
+ bin/ansible-boilerplate \
+ bin/a bin/ap bin/aps
install:
distcheck: dist
# Run tests on distribution archive ...
mkdir -p "$(DIST_D)/check"
- tar -C "$(DIST_D)/check" -xzf "$(DIST_D)"/*.tar.gz
+ tar -C "$(DIST_D)/check" -xzf $$(find "$(DIST_D)" -name '*.tar.gz' | sort -Vr | head -n1)
test -e "$(VENV_D)" && ln -fs "$(VENV_D)" "$(DIST_D)/check/.venv"
make -C "$(DIST_D)/check" check
# Clean up ...