Simplyfing makefile a bit.
authorDaniel Baumann <daniel@debian.org>
Mon, 24 May 2010 20:10:27 +0000 (22:10 +0200)
committerDaniel Baumann <daniel@debian.org>
Fri, 28 May 2010 06:15:02 +0000 (08:15 +0200)
Makefile

index 1018daf..eadd5d7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,12 +4,14 @@ SHELL := sh -e
 
 LANGUAGES = de
 
+SCRIPTS = bin/* hooks/* scripts/live scripts/live-functions scripts/live-helpers scripts/*/*
+
 all: test build
 
 test:
        @echo -n "Checking for syntax errors"
 
-       @for SCRIPT in bin/* hooks/* scripts/live scripts/live-functions scripts/live-helpers scripts/*/*; \
+       @for SCRIPT in $(SCRIPTS); \
        do \
                sh -n $${SCRIPT}; \
                echo -n "."; \
@@ -22,7 +24,7 @@ test:
        @# We can't just fail yet on bashisms (FIXME)
        @if [ -x /usr/bin/checkbashisms ]; \
        then \
-               for SCRIPT in bin/* hooks/* scripts/live scripts/live-functions scripts/live-helpers scripts/*/*; \
+               for SCRIPT in $(SCRIPTS); \
                do \
                        checkbashisms $${SCRIPT} || true; \
                        echo -n "."; \