From da22a021301d38500098a5c02fe0afacfb31cec4 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Thu, 17 Mar 2011 12:12:48 +0100 Subject: [PATCH] Makefile: split syntax check from target "check" to "syncheck" also add syntax check for the bash scripts --- Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1733c23..2d0c395 100644 --- a/Makefile +++ b/Makefile @@ -94,11 +94,17 @@ gitrpm: dracut-$(VERSION)-$(GITVERSION).tar.bz2 mv dracut.spec.bak dracut.spec rm -fr BUILD BUILDROOT -check: all - @ret=0;for i in modules.d/99base/init modules.d/*/*.sh; do \ +syncheck: + @ret=0;for i in dracut-logger modules.d/99base/init modules.d/*/*.sh; do \ [ "$${i##*/}" = "module-setup.sh" ] && continue; \ + [ "$${i##*/}" = "caps.sh" ] && continue; \ dash -n "$$i" ; ret=$$(($$ret+$$?)); \ done;exit $$ret + @ret=0;for i in dracut modules.d/02caps/caps.sh modules.d/*/module-setup.sh; do \ + bash -n "$$i" ; ret=$$(($$ret+$$?)); \ + done;exit $$ret + +check: all syncheck $(MAKE) -C test check testimage: all -- 2.7.4