Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow installing into custom directory #1188

Merged
merged 1 commit into from
Feb 1, 2022
Merged

Conversation

HiPhish
Copy link
Contributor

@HiPhish HiPhish commented Feb 1, 2022

Description

Allows the user to install the built package into a different directory than /usr/local by setting the PREFIX environment variable.

PREFIX=/usr/local/stow/erlang_ls-0.21.2 make -e install

I want to keep my manually installed packages easy to upgrade and remove, so I use GNU Stow for that purpose. I install the package to /usr/local/stow/<name> (where <name> is some arbitrary name I chose), then have Stow create symlinks into usr/local. Stow owns these symlinks and if I want to remove or replace a package it knows exactly which symlinks to remove.

This is much better than having a number of files from various packages lying all around the system. erlang_ls is not bad, it has only two files, but even two files here and two files there can quickly add up.

@robertoaloi
Copy link
Member

Thanks!

@robertoaloi robertoaloi merged commit 3e7ef67 into erlang-ls:main Feb 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants