OSDN Git Service

Add ./configure option "--with-varpath=PATH"
authorPHO <pho@cielonegro.org>
Thu, 6 Feb 2020 13:05:32 +0000 (22:05 +0900)
committerEric Branlund <ebranlund@fastmail.com>
Sat, 4 Apr 2020 15:07:01 +0000 (08:07 -0700)
commitff22886482aa3a2d97af3a793e644d2fde9e977b
tree598298f6a75e560404cc8ce3a755947e88b80c85
parent0c4913cded432bd1d16275c039afc380588faa30
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