4.1.2.2 Default Task

The default task is special in that Rscons will execute it if no other task has been requested by the user on the command line.

The default task can also be used to declare a dependency on another task that would effectively become the default. For example:

task "build" do
  ...
end

task "flash", depends: "build" do
  ...
end

default depends: "build"

Then when the user runs ./rscons the "build" task will be executed.