zsh-autosuggestions/Makefile

36 lines
628 B
Makefile
Raw Normal View History

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