Simplyfing makefile a bit.
This commit is contained in:
parent
d4c3a71a3d
commit
da9b423ab6
9
Makefile
9
Makefile
|
@ -4,12 +4,14 @@ SHELL := sh -e
|
||||||
|
|
||||||
LANGUAGES = de
|
LANGUAGES = de
|
||||||
|
|
||||||
|
SCRIPTS = live-helper.sh cgi/* functions/* examples/*/*.sh helpers/* hooks/*
|
||||||
|
|
||||||
all: test build
|
all: test build
|
||||||
|
|
||||||
test:
|
test:
|
||||||
@echo -n "Checking for syntax errors"
|
@echo -n "Checking for syntax errors"
|
||||||
|
|
||||||
@for SCRIPT in live-helper.sh cgi/* functions/* examples/*/*.sh helpers/* hooks/*; \
|
@for SCRIPT in $(SCRIPTS); \
|
||||||
do \
|
do \
|
||||||
sh -n $${SCRIPT}; \
|
sh -n $${SCRIPT}; \
|
||||||
echo -n "."; \
|
echo -n "."; \
|
||||||
|
@ -17,13 +19,14 @@ test:
|
||||||
|
|
||||||
@echo " done."
|
@echo " done."
|
||||||
|
|
||||||
|
@# We can't just fail yet on bashisms (FIXME)
|
||||||
@echo -n "Checking for bashisms"
|
@echo -n "Checking for bashisms"
|
||||||
|
|
||||||
@if [ -x /usr/bin/checkbashisms ]; \
|
@if [ -x /usr/bin/checkbashisms ]; \
|
||||||
then \
|
then \
|
||||||
for SCRIPT in live-helper.sh functions/* examples/*/*.sh helpers/* hooks/*; \
|
for SCRIPT in $(SCRIPTS); \
|
||||||
do \
|
do \
|
||||||
checkbashisms $${SCRIPT}; \
|
checkbashisms $${SCRIPT} || true; \
|
||||||
echo -n "."; \
|
echo -n "."; \
|
||||||
done; \
|
done; \
|
||||||
else \
|
else \
|
||||||
|
|
Loading…
Reference in New Issue