How to use "make install"?

As Leandro already said, the way to go here is probably Podman, which allows you to use a complete Ubuntu environment within Endless OS. To set it up, follow the instructions in this thread:

From within the environment you can install all the necessary tools and dependencies needed to build your application.