diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile | 21 | ||||
-rw-r--r-- | src/README.md | 3 |
2 files changed, 3 insertions, 21 deletions
diff --git a/src/Makefile b/src/Makefile index 68067efc..4610e586 100644 --- a/src/Makefile +++ b/src/Makefile @@ -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) diff --git a/src/README.md b/src/README.md index 2368b503..511b744d 100644 --- a/src/README.md +++ b/src/README.md @@ -83,9 +83,6 @@ make install # Build executables and tarballs for Linux using Docker make linux - -# Build tarball for Homebrew release -make brew ``` Contribution |