diff options
author | Daniel Baumann <daniel@debian.org> | 2010-05-24 22:11:06 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:17:10 +0100 |
commit | da9b423ab6e6d78d3a1b4985df8dc4576bce3f74 (patch) | |
tree | c301c1ec19c70c1b100cf5a905535c3ff005b96e /Makefile | |
parent | d4c3a71a3dc2d3a3343a0d3bba930875992a1dd0 (diff) | |
download | live-build-da9b423ab6e6d78d3a1b4985df8dc4576bce3f74.zip live-build-da9b423ab6e6d78d3a1b4985df8dc4576bce3f74.tar.gz |
Simplyfing makefile a bit.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -4,12 +4,14 @@ SHELL := sh -e LANGUAGES = de +SCRIPTS = live-helper.sh cgi/* functions/* examples/*/*.sh helpers/* hooks/* + all: test build test: @echo -n "Checking for syntax errors" - @for SCRIPT in live-helper.sh cgi/* functions/* examples/*/*.sh helpers/* hooks/*; \ + @for SCRIPT in $(SCRIPTS); \ do \ sh -n $${SCRIPT}; \ echo -n "."; \ @@ -17,13 +19,14 @@ test: @echo " done." + @# We can't just fail yet on bashisms (FIXME) @echo -n "Checking for bashisms" @if [ -x /usr/bin/checkbashisms ]; \ then \ - for SCRIPT in live-helper.sh functions/* examples/*/*.sh helpers/* hooks/*; \ + for SCRIPT in $(SCRIPTS); \ do \ - checkbashisms $${SCRIPT}; \ + checkbashisms $${SCRIPT} || true; \ echo -n "."; \ done; \ else \ |