]> git.rm.cloudns.org Git - xonotic/xonotic.git/commit
Makefile: support downstream packages
authorbones_was_here <bones_was_here@xonotic.au>
Thu, 17 Apr 2025 21:21:15 +0000 (07:21 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Sat, 19 Apr 2025 09:54:51 +0000 (19:54 +1000)
commitf54ca8e9b0479d70becef486bc09117a301350ec
tree6ee2fd0d5a3b06a33fe0c847c22981830482c9c6
parent9006981854685ff9f752d33d6f5159a99261575e
Makefile: support downstream packages

This is written with reference to the old Makefile (but with updates and
fixes) and some 0.8.6 distro packages. It aims to support the way they want
to package Xonotic to reduce the amount of fragile version-specific
scripting they do so they have less problems building new versions.

- Supports several GNU make "standard" directory variables and targets
- Supports omitting the xonotic-linux-*.sh files and symlinks by setting
  BASEDIR
- Supports client-only and server-only installs
- Supports renaming desktop and icon files (for flathub)
- Installs data to $(prefix)/share/xonotic instead of
  $(prefix)/lib/xonotic to match GNU make docs and current distro
  packages.
- Includes metadata and CA key for player IDs

Some documentation is added at https://gitlab.com/xonotic/xonotic/-/wikis/Compiling
Makefile
misc/logos/xonotic.desktop