diff options
author | Stephen Dolan <mu@netsoc.tcd.ie> | 2013-05-09 02:18:28 +0100 |
---|---|---|
committer | Stephen Dolan <mu@netsoc.tcd.ie> | 2013-05-09 02:18:28 +0100 |
commit | 124bda69937af09ea793787fba645cdb1fc1611e (patch) | |
tree | 81b31a81c47ae373e7a3b1de98f3c44e68377c2d /docs | |
parent | 7fbc50239c6906b562501ff62c53254fc8c979ef (diff) |
Add a "binaries" target to the website Rakefile.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/Rakefile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/docs/Rakefile b/docs/Rakefile index 0caaeca8..356f7111 100644 --- a/docs/Rakefile +++ b/docs/Rakefile @@ -64,6 +64,28 @@ task :build do Bonsai::Exporter.publish! end +$BINARIES = { + :osx32 => "--host=i686-apple-darwin10 CFLAGS='-m32 -g -O'", + :osx64 => "--host=i686-apple-darwin10 CFLAGS='-m64 -g -O'", + :win32 => "--host=i686-w64-mingw32 CFLAGS='-g -O'", + :win64 => "--host=x86_64-w64-mingw32 CFLAGS='-g -O'", + :linux32 => "--host=x86_64-linux-gnu CFLAGS='-m32 -g -O'", + :linux64 => "--host=x86_64-linux-gnu CFLAGS='-m64 -g -O'" +} + +$BINARIES.each do |name, args| + file "../build/#{name}" do |t| + sh "MAKEFLAGS=-j4 ../build/compile #{name} #{args}" + end + task :binaries => ["../build/#{name}"] +end + +task :binaries => ["output/download"] do + $BINARIES.each do |name, args| + FileUtils.cp_r "../build/#{name}", "output/download/" + end +end + def load_manual YAML::ENGINE.yamler = 'syck' YAML::load(File.open("content/3.manual/manual.yml")) |