zsh-syntax-highlighting/Makefile

17 lines
376 B
Makefile
Raw Normal View History

2015-09-25 15:28:27 +02:00
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)
2015-09-26 04:29:51 +02:00
test:
@for test in highlighters/*; do \
if [ -d $$test/test-data ]; then \
echo "Running test $${test##*/}"; \
zsh tests/test-highlighting.zsh "$${test##*/}"; \
fi \
done