zsh-autosuggestions/Makefile

36 lines
679 B
Makefile
Raw Permalink Normal View History

2022-05-17 03:11:12 +08:00
SRC_DIR := ./src
2016-02-06 06:14:08 +08:00
SRC_FILES := \
2016-02-06 06:14:08 +08:00
$(SRC_DIR)/config.zsh \
$(SRC_DIR)/util.zsh \
2016-02-06 06:14:08 +08:00
$(SRC_DIR)/bind.zsh \
$(SRC_DIR)/highlight.zsh \
$(SRC_DIR)/widgets.zsh \
$(SRC_DIR)/strategies/*.zsh \
$(SRC_DIR)/fetch.zsh \
2016-07-20 11:04:18 +08:00
$(SRC_DIR)/async.zsh \
2016-02-06 06:14:08 +08:00
$(SRC_DIR)/start.zsh
HEADER_FILES := \
DESCRIPTION \
URL \
VERSION \
LICENSE
PLUGIN_TARGET := zsh-autosuggestions.zsh
all: $(PLUGIN_TARGET)
$(PLUGIN_TARGET): $(HEADER_FILES) $(SRC_FILES)
2016-02-14 04:42:02 +08:00
cat $(HEADER_FILES) | sed -e 's/^/# /g' > $@
cat $(SRC_FILES) >> $@
2016-02-06 06:14:08 +08:00
.PHONY: clean
clean:
rm $(PLUGIN_TARGET)
2016-02-06 06:14:08 +08:00
.PHONY: test
2017-02-17 10:18:03 +08:00
test: all
2017-02-27 05:19:09 +08:00
@test -n "$$TEST_ZSH_BIN" && echo "Testing zsh binary: $(TEST_ZSH_BIN)" || true
2017-02-17 10:18:03 +08:00
bundle exec rspec $(TESTS)