zsh-syntax-highlighting/Makefile

25 lines
502 B
Makefile
Raw Normal View History

2015-09-25 09:28:27 -04:00
NAME=zsh-syntax-highlighting
2015-10-19 02:44:02 -04:00
INSTALL?=install -c
2015-09-25 09:28:27 -04:00
PREFIX?=/usr/local
SHARE_DIR=$(DESTDIR)$(PREFIX)/share/$(NAME)
# Have the default target do nothing.
all:
@ :
2015-09-25 09:28:27 -04:00
install:
$(INSTALL) -d $(SHARE_DIR)
cp -r zsh-syntax-highlighting.zsh highlighters $(SHARE_DIR)
2015-09-25 22:29:51 -04:00
test:
@result=0
2015-09-25 22:29:51 -04:00
@for test in highlighters/*; do \
if [ -d $$test/test-data ]; then \
echo "Running test $${test##*/}"; \
zsh tests/test-highlighting.zsh "$${test##*/}"; \
: $$(( result |= $$? )); \
2015-09-25 22:29:51 -04:00
fi \
done
@exit $$result