Skip to content
Myr

Fix Makefile and install script for the new project layout

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent 83e9af6 · Browse files · 2 files+12 added−12 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+12 added−12 removed

  • other:+12 added−12 removed

2 files+12 added−12 removed

modified:install+2 added-2 removed
167 unmodified lines
168 else169 echo " - $binary_error !!!"170 fi171 if command -v go > /dev/null; then172 echo -n "Building binary (go get -u github.com/junegunn/fzf/src/fzf) ... "172 echo -n "Building binary (go get -u github.com/junegunn/fzf) ... "173 if [ -z "${GOPATH-}" ]; then174 export GOPATH="${TMPDIR:-/tmp}/fzf-gopath"175 mkdir -p "$GOPATH"176 fi177 if go get -u github.com/junegunn/fzf/src/fzf; then177 if go get -u github.com/junegunn/fzf; then178 echo "OK"179 cp "$GOPATH/bin/fzf" "$fzf_base/bin/"180 else181 echo "Failed to build binary. Installation failed."
163 unmodified lines
modified:Makefile+10 added-10 removed
90 unmodified lines
91 GOOS=windows make release9293$(SRC_LINK):94 mkdir -p $(shell dirname $(SRC_LINK))95 ln -s $(ROOT_DIR)/src $(SRC_LINK)95 ln -sf $(ROOT_DIR)/src $(SRC_LINK)9697$(VENDOR_LINK):98 mkdir -p $(shell dirname $(VENDOR_LINK))99 ln -s $(ROOT_DIR)/vendor $(VENDOR_LINK)99 ln -sf $(ROOT_DIR)/vendor $(VENDOR_LINK)100101$(GLIDE_LOCK): $(GLIDE_YAML)101vendor: $(GLIDE_YAML)102 go get -u github.com/Masterminds/glide && $(GOPATH)/bin/glide install && touch $@103104test: $(SOURCES)104test: $(SOURCES) vendor105 SHELL=/bin/sh GOOS= go test -v -tags "$(TAGS)" \106 github.com/junegunn/fzf/src \107 github.com/junegunn/fzf/src/algo \108 github.com/junegunn/fzf/src/tui \
3 unmodified lines
112113clean:114 rm -rf target115116target/$(BINARY32): $(SOURCES)116target/$(BINARY32): $(SOURCES) vendor117 GOARCH=386 go build $(BUILD_FLAGS) -o $@118119target/$(BINARY64): $(SOURCES)119target/$(BINARY64): $(SOURCES) vendor120 GOARCH=amd64 go build $(BUILD_FLAGS) -o $@121122# https://github.com/golang/go/wiki/GoArm123target/$(BINARYARM5): $(SOURCES)123target/$(BINARYARM5): $(SOURCES) vendor124 GOARCH=arm GOARM=5 go build $(BUILD_FLAGS) -o $@125126target/$(BINARYARM6): $(SOURCES)126target/$(BINARYARM6): $(SOURCES) vendor127 GOARCH=arm GOARM=6 go build $(BUILD_FLAGS) -o $@128129target/$(BINARYARM7): $(SOURCES)129target/$(BINARYARM7): $(SOURCES) vendor130 GOARCH=arm GOARM=7 go build $(BUILD_FLAGS) -o $@131132target/$(BINARYARM8): $(SOURCES)132target/$(BINARYARM8): $(SOURCES) vendor133 GOARCH=arm64 go build $(BUILD_FLAGS) -o $@134135bin/fzf: target/$(BINARY) | bin136 cp -f target/$(BINARY) bin/fzf
2 unmodified lines