mirror of
https://github.com/valitydev/elixir-thrift.git
synced 2024-11-07 02:35:17 +00:00
9767e18e94
Unfortunately, there doesn't appear to be a well-known and supported Debian package for the Thrift compiler, so we need to build it from source instead. We cache the $HOME/vendor directory but always rebuild the thrift compiler binary, per Travis-CI best practices.
20 lines
870 B
Makefile
20 lines
870 B
Makefile
# Makefile targets for setting up the Travis-CI build and test environment
|
|
|
|
.PHONY: install-thrift
|
|
|
|
THRIFT_VERSION ?= 0.9.3
|
|
|
|
all:
|
|
|
|
$(HOME)/vendor:
|
|
mkdir -p $(HOME)/vendor
|
|
|
|
$(HOME)/vendor/thrift-$(THRIFT_VERSION).tar.gz: $(HOME)/vendor
|
|
cd $(HOME)/vendor && curl -O http://www.apache.org/dist/thrift/$(THRIFT_VERSION)/thrift-$(THRIFT_VERSION).tar.gz
|
|
|
|
$(HOME)/vendor/thrift-$(THRIFT_VERSION): $(HOME)/vendor/thrift-$(THRIFT_VERSION).tar.gz
|
|
cd $(HOME)/vendor && tar xfz thrift-$(THRIFT_VERSION).tar.gz
|
|
|
|
install-thrift: $(HOME)/vendor/thrift-$(THRIFT_VERSION)
|
|
cd $(HOME)/vendor/thrift-$(THRIFT_VERSION) && ./configure --prefix=$(HOME) --with-erlang --without-csharp --without-java --without-nodejs --without-lua --without-python --without-perl --without-php --without-php_extension --without-ruby --without-haskell --without-go --without-haxe --without-d && make install
|