mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-09-28 21:29:03 +00:00
Remove brew target
This commit is contained in:
parent
789f26b1a5
commit
0b5fa56444
21
src/Makefile
21
src/Makefile
@ -21,29 +21,14 @@ BINARY64 := fzf-$(GOOS)_amd64
|
|||||||
VERSION = $(shell fzf/$(BINARY64) --version)
|
VERSION = $(shell fzf/$(BINARY64) --version)
|
||||||
RELEASE32 = fzf-$(VERSION)-$(GOOS)_386
|
RELEASE32 = fzf-$(VERSION)-$(GOOS)_386
|
||||||
RELEASE64 = fzf-$(VERSION)-$(GOOS)_amd64
|
RELEASE64 = fzf-$(VERSION)-$(GOOS)_amd64
|
||||||
BREW = fzf-$(VERSION)-homebrew.tgz
|
|
||||||
|
|
||||||
all: test release
|
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
|
release: build
|
||||||
cd fzf && \
|
cd fzf && \
|
||||||
cp $(BINARY32) $(RELEASE32) && tar -czf $(RELEASE32).tgz $(RELEASE32) && \
|
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)
|
build: fzf/$(BINARY32) fzf/$(BINARY64)
|
||||||
|
|
||||||
@ -86,4 +71,4 @@ $(DISTRO): docker
|
|||||||
docker run -i -t -v $(GOPATH):/go junegunn/$(DISTRO)-sandbox \
|
docker run -i -t -v $(GOPATH):/go junegunn/$(DISTRO)-sandbox \
|
||||||
sh -c 'cd /go/src/github.com/junegunn/fzf/src; /bin/bash'
|
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)
|
||||||
|
@ -83,9 +83,6 @@ make install
|
|||||||
|
|
||||||
# Build executables and tarballs for Linux using Docker
|
# Build executables and tarballs for Linux using Docker
|
||||||
make linux
|
make linux
|
||||||
|
|
||||||
# Build tarball for Homebrew release
|
|
||||||
make brew
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Contribution
|
Contribution
|
||||||
|
Loading…
Reference in New Issue
Block a user