Building plugin needs UE5 tools?

I am a UE5 newbie and need help building a plugin in Linux.

Steps:

  1. Build the plugin from source (this works)
  2. Try to open plugin in UE5.4 editor: it reports an error and says to build in an IDE
  3. Generate the project files for the plugin:
    $UE5_ROOT/Engine/Build/BatchFiles/RunUBT.sh -projectfiles -project=$PLUGIN_ROOT/UnrealEngine/UEReferenceApp.uproject -game -engine -makefile
    or
    $UE5_ROOT/GenerateProjectFiles.sh $PLUGIN_ROOT/UnrealEngine/UEReferenceApp.uproject -game -engine -makefile
  4. Try to compile
    cd $PLUGIN_ROOT/UnrealEngine 
    make
    

This immediately exits with the error:
make: *** No rule to make target 'CrashReportClient-Linux-Shipping', needed by 'RequiredTools'. Stop.

I get the same error if I compile from the terminal (as shown above), of if using VS Code.

It seems building the plugin (in the plugin directory, $PLUGIN_ROOT) needs tools such as CrashReportClient from UE5 (which is under $UE5_ROOT).

What am I doing wrong?

Note: I built UE 5.4.2 from source on Github.