secret
Created

  • Download Gist
Makefile
Makefile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
build = ruby-1.9.3-p0
 
ruby_dir = ./ruby/bin
gem_dir = ./gems
 
ruby_opts = GEM_HOME=$(gem_dir)
 
gem = $(ruby_dir)/gem
ruby = $(ruby_dir)/ruby
bundler = $(gem_dir)/bin/bundle
 
error: $(bundler) Gemfile
$(ruby_opts) $(bundler)
 
Gemfile:
echo "bundler" > $?
 
$(bundler): $(ruby_dir)
$(ruby_opts) $(gem) install bundler
 
$(ruby_dir): $(build)/Makefile
( cd ./$(build) ; make install)
 
$(build)/Makefile: $(filter-out $(wildcard $(build)), $(build))
( cd ./$? ; ./configure --prefix=`pwd`/../ruby)
 
$(build): $(build).tar.bz2
tar xjf $?
 
$(build).tar.bz2:
wget http://ftp.ruby-lang.org/pub/ruby/1.9/$@
 
clean:
rm -rf $(build)*
 
# Required apt packages: libyaml-dev zlib1g-dev libssl-dev libreadline5-dev libxml2-dev libsqlite3-dev

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.