X-Git-Url: https://git.hcoop.net/clinton/Smoothieware.git/blobdiff_plain/6a301bc9631135167f56f9cf9ee6d80e25abc56a..4c8f54478c63c4a87d25934304d126efa45d0d29:/Rakefile diff --git a/Rakefile b/Rakefile index e510a3ac..9c7aa719 100644 --- a/Rakefile +++ b/Rakefile @@ -2,6 +2,9 @@ require 'rake' require 'pathname' require 'fileutils' +verbose(ENV['verbose'] == '1') +DEBUG = ENV['debug'] == '1' + def pop_path(path) Pathname(path).each_filename.to_a[1..-1] end @@ -71,6 +74,11 @@ SIZE = "#{TOOLSBIN}size" # include a defaults file if present load 'rakefile.defaults' if File.exists?('rakefile.defaults') +if DEBUG + BUILDTYPE= 'Debug' + ENABLE_DEBUG_MONITOR= '0' +end + # Set build type BUILDTYPE= ENV['BUILDTYPE'] || 'Checked' unless defined? BUILDTYPE puts "#{BUILDTYPE} build"