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)
committerPHO <pho@cielonegro.org>
Sat, 8 Feb 2020 06:09:30 +0000 (15:09 +0900)
commit2b48189880587ab83bd24ef58bd145a690e46280
treef7f9f4f3e62641d070b7962ec8b9e0ab78c9cd64
parentac1c992fe7472185e181020dafbaf7e19fddb8a9
[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.
19 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/externs.h
src/init2.c
src/main-mac.c
src/main-win.c
src/main.c
src/z-config.h