<commit_before># TODO: Set to make when make is used as a generator
set(CMAKE_MAKE_PROGRAM ninja)
get_filename_component(generator ${CMAKE_MAKE_PROGRAM} NAME)

set(arch_list
  arc
  arm
  nios2
  riscv32
  posix
  x86
  xtensa
  )

set(board_dir ${ZEPHYR_BASE}/boards)

foreach(arch ${arch_list})
  set(board_arch_dir ${board_dir}/${arch})

  # Match the .yanl files in the board directories to make sure we are
  # finding boards, e.g. qemu_xtensa/qemu_xtensa.yaml
  file(GLOB_RECURSE yamls_for_${arch}
    RELATIVE ${board_arch_dir}
    ${board_arch_dir}/*.yaml
    )

  # The above gives a list like
  # nrf51_blenano/nrf51_blenano_yaml;nrf51_pca10028/nrf51_pca10028_yaml
  # we construct a list of board names by removing both the .yaml
  # suffix and the path.
  set(boards_for_${arch} "")
  foreach(yaml_path ${yamls_for_${arch}})
    get_filename_component(board ${yaml_path} NAME_WE)

    list(APPEND boards_for_${arch} ${board})
  endforeach()
endforeach()

message("Cleaning targets:")
message("  clean     - Remove most generated files but keep configuration and backup files")
message("  pristine  - Remove all files in the build directory")
message("")
message("Configuration targets:")
message("")
message("  run <${generator} kconfig-usage>")<commit_msg>cmake: Fix "make usage" regression from the ZEPHYR_BASE change<commit_after># TODO: Set to make when make is used as a generator
set(CMAKE_MAKE_PROGRAM ninja)
get_filename_component(generator ${CMAKE_MAKE_PROGRAM} NAME)

set(arch_list
  arc
  arm
  nios2
  riscv32
  posix
  x86
  xtensa
  )

set(board_dir $ENV{ZEPHYR_BASE}/boards)

foreach(arch ${arch_list})
  set(board_arch_dir ${board_dir}/${arch})

  # Match the .yanl files in the board directories to make sure we are
  # finding boards, e.g. qemu_xtensa/qemu_xtensa.yaml
  file(GLOB_RECURSE yamls_for_${arch}
    RELATIVE ${board_arch_dir}
    ${board_arch_dir}/*.yaml
    )

  # The above gives a list like
  # nrf51_blenano/nrf51_blenano_yaml;nrf51_pca10028/nrf51_pca10028_yaml
  # we construct a list of board names by removing both the .yaml
  # suffix and the path.
  set(boards_for_${arch} "")
  foreach(yaml_path ${yamls_for_${arch}})
    get_filename_component(board ${yaml_path} NAME_WE)

    list(APPEND boards_for_${arch} ${board})
  endforeach()
endforeach()

message("Cleaning targets:")
message("  clean     - Remove most generated files but keep configuration and backup files")
message("  pristine  - Remove all files in the build directory")
message("")
message("Configuration targets:")
message("")
message("  run <${generator} kconfig-usage>")
{'fraction_non_alphanumeric': 0.10540540540540541, 'fraction_numerical': 0.01776061776061776, 'mean_word_length': 4.8487584650112865, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2723035', 'n_tokens_mistral': 955, 'n_tokens_neox': 893, 'n_words': 243}