Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

43 linhas
1000 B

há 9 anos
há 9 anos
há 9 anos
há 9 anos
  1. NAME=zsh-syntax-highlighting
  2. INSTALL?=install -c
  3. PREFIX?=/usr/local
  4. SHARE_DIR=$(DESTDIR)$(PREFIX)/share/$(NAME)
  5. ZSH?=zsh # zsh binary to run tests with
  6. # Have the default target do nothing.
  7. all:
  8. @ :
  9. install:
  10. $(INSTALL) -d $(SHARE_DIR)
  11. cp -r .version zsh-syntax-highlighting.zsh highlighters $(SHARE_DIR)
  12. if [ x"true" = x"`git rev-parse --is-inside-work-tree 2>/dev/null`" ]; then \
  13. git rev-parse HEAD; \
  14. else \
  15. cat .revision-hash; \
  16. fi > $(SHARE_DIR)/.revision-hash
  17. test:
  18. @result=0; \
  19. for test in highlighters/*; do \
  20. if [ -d $$test/test-data ]; then \
  21. echo "Running test $${test##*/}"; \
  22. $(ZSH) -f tests/test-highlighting.zsh "$${test##*/}"; \
  23. : $$(( result |= $$? )); \
  24. fi \
  25. done; \
  26. exit $$result
  27. perf:
  28. @result=0; \
  29. for test in highlighters/*; do \
  30. if [ -d $$test/test-data ]; then \
  31. echo "Running test $${test##*/}"; \
  32. $(ZSH) -f tests/test-perfs.zsh "$${test##*/}"; \
  33. : $$(( result |= $$? )); \
  34. fi \
  35. done; \
  36. exit $$result
  37. .PHONY: all install test