From caaf28ec95c5bd76f49a1fbc2fe7e354c9287132 Mon Sep 17 00:00:00 2001
From: Daniel Baumann <daniel@debian.org>
Date: Sun, 23 May 2010 12:26:15 +0200
Subject: Visually improving test target of Makefile.
---
Makefile | 23 +++++++++++++++++------
1 file changed, 17 insertions(+), 6 deletions(-)
diff --git a/Makefile b/Makefile
index 450fe3d..9896dd3 100644
--- a/Makefile
+++ b/Makefile
@@ -4,23 +4,34 @@ SHELL := sh -e
LANGUAGES = de
-all: test install
+all: test build
test:
- # Checking for syntax errors
- for SCRIPT in live-helper.sh cgi/* functions/* examples/*/*.sh helpers/* hooks/*; \
+ @echo -n "Checking for syntax errors"
+
+ @for SCRIPT in live-helper.sh cgi/* functions/* examples/*/*.sh helpers/* hooks/*; \
do \
sh -n $${SCRIPT}; \
+ echo -n "."; \
done
- # Checking for bashisms
- if [ -x /usr/bin/checkbashisms ]; \
+ @echo " done."
+
+ @echo -n "Checking for bashisms"
+
+ @if [ -x /usr/bin/checkbashisms ]; \
then \
- checkbashisms live-helper.sh functions/* examples/*/*.sh helpers/* hooks/*; \
+ for SCRIPT in live-helper.sh functions/* examples/*/*.sh helpers/* hooks/*; \
+ do \
+ checkbashisms $${SCRIPT}; \
+ echo -n "."; \
+ done; \
else \
echo "WARNING: skipping bashism test - you need to install devscripts."; \
fi
+ @echo " done."
+
build:
@echo "Nothing to build."
--
cgit v1.0