elixir-thrift/Makefile
Jon Parise 9767e18e94 Build Thrift 0.9.3 in the Travis home directory
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.
2016-05-24 08:57:17 -07:00

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