rake shortcut for recompiling in build folder
This commit is contained in:
parent
36f3c0f77a
commit
a7c32dfa95
9
Rakefile
9
Rakefile
@ -4,6 +4,7 @@ require 'digest/sha1'
|
|||||||
require 'cucumber/rake/task'
|
require 'cucumber/rake/task'
|
||||||
require 'sys/proctable'
|
require 'sys/proctable'
|
||||||
|
|
||||||
|
BUILD_FOLDER = 'build'
|
||||||
DATA_FOLDER = 'sandbox'
|
DATA_FOLDER = 'sandbox'
|
||||||
PROFILE = 'bicycle'
|
PROFILE = 'bicycle'
|
||||||
OSRM_PORT = 5000
|
OSRM_PORT = 5000
|
||||||
@ -77,11 +78,13 @@ end
|
|||||||
|
|
||||||
|
|
||||||
desc "Rebuild and run tests."
|
desc "Rebuild and run tests."
|
||||||
task :default => [:build, :cucumber]
|
task :default => [:build]
|
||||||
|
|
||||||
desc "Build using SConsstruct."
|
desc "Build using CMake."
|
||||||
task :build do
|
task :build do
|
||||||
system "scons"
|
Dir.chdir BUILD_FOLDER do
|
||||||
|
system "make"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
desc "Setup config files."
|
desc "Setup config files."
|
||||||
|
Loading…
Reference in New Issue
Block a user