Skip to content

Commit

Permalink
Fix Makefile to not create symbolic link after PR sorin-ionescu#156 w…
Browse files Browse the repository at this point in the history
…as merged
  • Loading branch information
ericfreese committed May 28, 2016
1 parent 7c688ec commit 4a2d9f9
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ HEADER_FILES := \
LICENSE

PLUGIN_TARGET := zsh-autosuggestions.zsh
OH_MY_ZSH_LINK_TARGET := zsh-autosuggestions.plugin.zsh

ALL_TARGETS := \
$(PLUGIN_TARGET) \
$(OH_MY_ZSH_LINK_TARGET)

SHUNIT2 := $(VENDOR_DIR)/shunit2/2.1.6
STUB_SH := $(VENDOR_DIR)/stub.sh/stub.sh
Expand All @@ -31,15 +26,12 @@ TEST_PREREQS := \
$(SHUNIT2) \
$(STUB_SH)

all: $(ALL_TARGETS)
all: $(PLUGIN_TARGET)

$(PLUGIN_TARGET): $(HEADER_FILES) $(SRC_FILES)
cat $(HEADER_FILES) | sed -e 's/^/# /g' > $@
cat $(SRC_FILES) >> $@

$(OH_MY_ZSH_LINK_TARGET): $(PLUGIN_TARGET)
ln -s $(PLUGIN_TARGET) $@

$(SHUNIT2):
git submodule update --init vendor/shunit2

Expand All @@ -48,7 +40,7 @@ $(STUB_SH):

.PHONY: clean
clean:
rm $(ALL_TARGETS)
rm $(PLUGIN_TARGET)

.PHONY: test
test: all $(TEST_PREREQS)
Expand Down

0 comments on commit 4a2d9f9

Please sign in to comment.