You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
682 B

8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
  1. SRC_DIR := ./src
  2. SRC_FILES := \
  3. $(SRC_DIR)/config.zsh \
  4. $(SRC_DIR)/util.zsh \
  5. $(SRC_DIR)/bind.zsh \
  6. $(SRC_DIR)/highlight.zsh \
  7. $(SRC_DIR)/widgets.zsh \
  8. $(SRC_DIR)/strategies/*.zsh \
  9. $(SRC_DIR)/fetch.zsh \
  10. $(SRC_DIR)/async.zsh \
  11. $(SRC_DIR)/start.zsh
  12. HEADER_FILES := \
  13. DESCRIPTION \
  14. URL \
  15. VERSION \
  16. LICENSE
  17. PLUGIN_TARGET := zsh-autosuggestions.zsh
  18. all: $(PLUGIN_TARGET)
  19. $(PLUGIN_TARGET): $(HEADER_FILES) $(SRC_FILES)
  20. cat $(HEADER_FILES) | sed -e 's/^/# /g' > $@
  21. cat $(SRC_FILES) >> $@
  22. .PHONY: clean
  23. clean:
  24. rm $(PLUGIN_TARGET)
  25. .PHONY: test
  26. test: all
  27. @test -n "$$TEST_ZSH_BIN" && echo "Testing zsh binary: $(TEST_ZSH_BIN)" || true
  28. bundle exec rspec $(TESTS)