Simplyfing makefile a bit.

This commit is contained in:
Daniel Baumann 2010-05-24 22:11:06 +02:00
parent d4c3a71a3d
commit da9b423ab6
1 changed files with 6 additions and 3 deletions

View File

@ -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 \