'make install': Tweak to work with one-shell-per-logical-line 'make' implementations,

Tested with 'bmake -B'.

Found-by: Carsten Hey
This commit is contained in:
Daniel Shahaf 2015-10-20 00:31:40 +00:00
parent 72b1abd17d
commit bb9c407c95

View File

@ -18,14 +18,14 @@ install:
fi > $(SHARE_DIR)/.revision-hash fi > $(SHARE_DIR)/.revision-hash
test: test:
@result=0 @result=0; \
@for test in highlighters/*; do \ for test in highlighters/*; do \
if [ -d $$test/test-data ]; then \ if [ -d $$test/test-data ]; then \
echo "Running test $${test##*/}"; \ echo "Running test $${test##*/}"; \
zsh -f tests/test-highlighting.zsh "$${test##*/}"; \ zsh -f tests/test-highlighting.zsh "$${test##*/}"; \
: $$(( result |= $$? )); \ : $$(( result |= $$? )); \
fi \ fi \
done done; \
@exit $$result exit $$result
.PHONY: all install test .PHONY: all install test