zsh-syntax-highlighting/Makefile
2015-10-19 01:45:15 -05:00

20 lines
433 B
Makefile

NAME=zsh-syntax-highlighting
PREFIX?=/usr/local
SHARE_DIR=$(DESTDIR)$(PREFIX)/share/$(NAME)
install:
$(INSTALL) -d $(SHARE_DIR)
cp -r zsh-syntax-highlighting.zsh highlighters $(SHARE_DIR)
test:
@result=0
@for test in highlighters/*; do \
if [ -d $$test/test-data ]; then \
echo "Running test $${test##*/}"; \
zsh tests/test-highlighting.zsh "$${test##*/}"; \
: $$(( result |= $$? )); \
fi \
done
@exit $$result