code: def prepare_for_build(self):
          '''Prepare the build.
          '''
          assert(self.target is not None)
          if hasattr(self.target, '_build_prepared'):
              return
  
          self.info('Preparing build')
  
          self.info('Check requirements for {0}'.format(self.targetname))
          self.target.check_requirements()
  
          self.info('Install platform')
          self.target.install_platform()
  
          self.info('Check application requirements')
          self.check_application_requirements()
  
          self.info('Check garden requirements')
          self.check_garden_requirements()
  
          self.info('Compile platform')
          self.target.compile_platform()
  
          # flag to prevent multiple build
          self.target._build_prepared = Truf prepare_for_build(self):
          '''Prepare the build.
          '''
          assert(self.target is not None)
          if hasattr(self.target, '_build_prepared'):
              return
  
          self.info('Preparing build')
  
          self.info('Check requirements for {0}'.format(self.targetname))
          self.target.check_requirements()
  
          self.info('Install platform')
          self.target.install_platform()
  
          self.info('Check application requirements')
          self.check_application_requirements()
  
          self.info('Check garden requirements')
          self.check_garden_requirements()
  
          self.info('Compile platform')
          self.target.compile_platform()
  
          # flag to prevent multiple build
          self.target._build_prepared = True
docs: Prepare the build.