OSDN Git Service

[Feature] Add ./configure option "--with-varpath=PATH"
authorPHO <pho@cielonegro.org>
Thu, 6 Feb 2020 13:05:32 +0000 (22:05 +0900)
committeriks <iks@users.sorceforge.jp>
Sat, 21 Nov 2020 20:16:14 +0000 (05:16 +0900)
commitd2d41298bb6cd10740023ec2a325936c65a8d4ae
tree4b7bc2cefe238f110f96533d9ab87b4e9e9114c1
parente7985047d391d397db67dbc854b99c751da74505
[Feature] Add ./configure option "--with-varpath=PATH"

On Unix-like platforms, it is often desirable to install files that
will be modified after installation under a separate directory tree
from that containing read-only data files. This is so that read-only
files can reside in a read-only file system, and also package managers
can update or remove read-only files without worrying about removing
user data.

The new option "--with-varpath=PATH", when specified, configures the
game so that certain directories, namely apex, bone, data, edit, user,
and save, will be created under the given path, as opposed to the path
specified with "--with-libpath=PATH". When the option is not given,
those directories will be created under the lib directory as before.
14 files changed:
configure.ac
lib/apex/Makefile.am
lib/bone/Makefile.am
lib/data/Makefile.am
lib/edit/Makefile.am
lib/file/Makefile.am
lib/help/Makefile.am
lib/info/Makefile.am
lib/pref/Makefile.am
lib/save/Makefile.am
lib/script/Makefile.am
lib/user/Makefile.am
lib/xtra/graf/Makefile.am
src/main.c