Remove brew target

This commit is contained in:
Junegunn Choi 2015-01-14 02:26:47 +09:00
parent 789f26b1a5
commit 0b5fa56444
2 changed files with 3 additions and 21 deletions

View File

@ -21,29 +21,14 @@ BINARY64 := fzf-$(GOOS)_amd64
VERSION = $(shell fzf/$(BINARY64) --version)
RELEASE32 = fzf-$(VERSION)-$(GOOS)_386
RELEASE64 = fzf-$(VERSION)-$(GOOS)_amd64
BREW = fzf-$(VERSION)-homebrew.tgz
all: test release
brew: ../$(BREW)
../$(BREW): release
ifneq ($(UNAME_S),Darwin)
$(error brew package must be built on OS X)
endif
mkdir -p ../bin && \
cp fzf/$(RELEASE64) fzf/$(RELEASE32) ../bin && \
cd .. && ln -sf . fzf-$(VERSION) && \
tar -cvzf $(BREW) \
fzf-$(VERSION)/{{,un}install,fzf-completion.{ba,z}sh,LICENSE} \
fzf-$(VERSION)/{plugin/fzf.vim,bin/{$(RELEASE64),$(RELEASE32)}} && \
rm fzf-$(VERSION) && \
openssl sha1 $(notdir $@)
release: build
cd fzf && \
cp $(BINARY32) $(RELEASE32) && tar -czf $(RELEASE32).tgz $(RELEASE32) && \
cp $(BINARY64) $(RELEASE64) && tar -czf $(RELEASE64).tgz $(RELEASE64)
cp $(BINARY64) $(RELEASE64) && tar -czf $(RELEASE64).tgz $(RELEASE64) && \
rm $(RELEASE32) $(RELEASE64)
build: fzf/$(BINARY32) fzf/$(BINARY64)
@ -86,4 +71,4 @@ $(DISTRO): docker
docker run -i -t -v $(GOPATH):/go junegunn/$(DISTRO)-sandbox \
sh -c 'cd /go/src/github.com/junegunn/fzf/src; /bin/bash'
.PHONY: all brew build release test install uninstall clean docker linux $(DISTRO)
.PHONY: all build release test install uninstall clean docker linux $(DISTRO)

View File

@ -83,9 +83,6 @@ make install
# Build executables and tarballs for Linux using Docker
make linux
# Build tarball for Homebrew release
make brew
```
Contribution