glest / glest-source

Glest is a network multi-player cross-platform 3D real-time strategy (RTS) game, where you create armies of units and battle different factions.
https://glest.io
GNU General Public License v3.0
57 stars 39 forks source link

"make install" should work #147

Closed andy5995 closed 5 years ago

andy5995 commented 6 years ago

It's pretty customary that "make install" will install a program to directories specified by the user.

(related to #110)

https://github.com/ZetaGlest/zetaglest-source/blob/develop/CMakeLists.txt

Most users build ZG by using the build-zg.sh script provided.

But running cmake . in the root directory will configure the build, then running make will build

Right now, make install does nothing.

make: *** No rule to make target 'install'. Stop.

there should be default directories specified in cmake, and documentation for the user on how to change it from the command line when running cmake.

Once that's implemented, there needs to be an uninstall option. See CMake support “make uninstall”? for some details on that.

Frequently packages for Linux are made by installing to a temp directory, so the files that are intended to be distributed are isolated from everything else in the source directory. That's frequently done using something like 'make install DESTDIR=...`