From: Harald Hoyer Date: Thu, 17 Mar 2011 11:12:48 +0000 (+0100) Subject: Makefile: split syntax check from target "check" to "syncheck" X-Git-Tag: 009~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da22a021301d38500098a5c02fe0afacfb31cec4;p=thirdparty%2Fdracut.git Makefile: split syntax check from target "check" to "syncheck" also add syntax check for the bash scripts --- diff --git a/Makefile b/Makefile index 1733c2337..2d0c39565 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