Bug #1331
Use default (global) OpenTTD data dirs for install
Status: | Confirmed | Start date: | 2010-08-28 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | planetmaker | % Done: | 0% | |
Category: | - | |||
Target version: | 0.5.0 |
Description
the current local paths should be added as commented-out version to the Makefile.local.sample
Maybe this needs also checking on the (detailed) OS, more than just OS-type
History
#1 Updated by planetmaker over 10 years ago
‘datarootdir’
The root of the directory tree for read-only architecture-independent data files. This should normally be /usr/local/share, but write it as $(prefix)/share. (If you are using Autoconf, write it as ‘datarootdir
’.) ‘datadir’'s default value is based on this variable; so are ‘infodir’, ‘mandir’, and others.
‘datadir’
The directory for installing idiosyncratic read-only architecture-independent data files for this program. This is usually the same place as ‘datarootdir’, but we use the two separate variables so that you can move these program-specific files without altering the location for Info files, man pages, etc.
This should normally be /usr/local/share, but write it as $(datarootdir). (If you are using Autoconf, write it as ‘datadir
’.)
The definition of ‘datadir’ is the same for all packages, so you should install your data in a subdirectory thereof. Most packages install their data under $(datadir)/package-name/.
But mind:
4. The binary directory (where the OpenTTD executable is)
271 Windows: C:\Program Files\OpenTTD
272 Linux: /usr/games
273 5. The installation directory (Linux only)
274 Linux: /usr/share/games/openttd