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