2016-02-06 06:14:08 +08:00
|
|
|
SRC_DIR := ./src
|
|
|
|
|
2016-02-08 05:21:57 +08:00
|
|
|
SRC_FILES := \
|
2016-07-20 11:04:18 +08:00
|
|
|
$(SRC_DIR)/setup.zsh \
|
2016-02-06 06:14:08 +08:00
|
|
|
$(SRC_DIR)/config.zsh \
|
2016-07-20 11:04:18 +08:00
|
|
|
$(SRC_DIR)/util.zsh \
|
2017-01-27 07:35:33 +08:00
|
|
|
$(SRC_DIR)/features.zsh \
|
2016-02-06 06:14:08 +08:00
|
|
|
$(SRC_DIR)/deprecated.zsh \
|
|
|
|
$(SRC_DIR)/bind.zsh \
|
|
|
|
$(SRC_DIR)/highlight.zsh \
|
|
|
|
$(SRC_DIR)/widgets.zsh \
|
2016-03-02 03:45:55 +08:00
|
|
|
$(SRC_DIR)/strategies/*.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
|
|
|
|
|
2016-02-08 05:21:57 +08:00
|
|
|
HEADER_FILES := \
|
|
|
|
DESCRIPTION \
|
|
|
|
URL \
|
|
|
|
VERSION \
|
|
|
|
LICENSE
|
|
|
|
|
|
|
|
PLUGIN_TARGET := zsh-autosuggestions.zsh
|
|
|
|
|
2016-05-28 22:26:24 +08:00
|
|
|
all: $(PLUGIN_TARGET)
|
2016-02-08 05:21:57 +08:00
|
|
|
|
|
|
|
$(PLUGIN_TARGET): $(HEADER_FILES) $(SRC_FILES)
|
2016-02-14 04:42:02 +08:00
|
|
|
cat $(HEADER_FILES) | sed -e 's/^/# /g' > $@
|
2016-02-08 05:21:57 +08:00
|
|
|
cat $(SRC_FILES) >> $@
|
2016-02-06 06:14:08 +08:00
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
2016-05-28 22:26:24 +08:00
|
|
|
rm $(PLUGIN_TARGET)
|
2016-02-06 06:14:08 +08:00
|
|
|
|
|
|
|
.PHONY: test
|
2017-02-17 10:18:03 +08:00
|
|
|
test: all
|
|
|
|
bundle exec rspec $(TESTS)
|