Visitar URL original
sys/unix/setup.sh should accept a PREFIX variable · Issue #1615 · NetHack/NetHack · GitHub
Skip to content

sys/unix/setup.sh should accept a PREFIX variable #1615

Description

@orffen

When using WANT_SOURCE_INSTALL=1, sys/unix/setup.sh always sets $PREFIX to $(NHSROOT), and consequently make all/make install builds NetHack for $(PREFIX)/playground location.

It would be nice to be able to manually pass PREFIX for a different location.

Currently this can be achieved by creating make.prefs to override as per the below example:

WANT_SOURCE_INSTALL = 1
PREFIX = /home/user/.local/share/nethack
HACKDIR = /home/user/.local/share/nethack
INSTDIR = /home/user/.local/share/nethack
VARDIR = /home/user/.local/share/nethack

I guess if PREFIX is passed to sys/unix/setup.sh it should set all of the above to that value so that this can work for macOS.500 and linux.500 configs.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions