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

Support configurable install location and bare make #871

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

silasdavis
Copy link

My motivation for this is to support NixOS which installs into a
content-addressed directory layout and needs to be able to provide the
location of the XDG share (specific to the package)

Also it is more conventional to have the first target in make file do
the 'full build', then the standard build of make && make install will
work. I couldn't see a downside of adding this so I added an all
target. For my purposes this makes the packaging for NixOS more minimal
since I don't need to customise the standard builder (which is easy
enough to do, but this seemed like a good thing to have anyway).

Signed-off-by: Silas Davis silas.davis@monax.io

My motivation for this is to support NixOS which installs into a
content-addressed directory layout and needs to be able to provide the
location of the XDG share (specific to the package)

Also it is more conventional to have the first target in make file do
the 'full build', then the standard build of `make && make install` will
work. I couldn't see a downside of adding this so I added an `all`
target. For my purposes this makes the packaging for NixOS more minimal
since I don't need to customise the standard builder (which is easy
enough to do, but this seemed like a good thing to have anyway).

Signed-off-by: Silas Davis <silas.davis@monax.io>
Copy link
Contributor

@HalfVoxel HalfVoxel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!


ifeq ($(XDG_DATA_HOME),)
export XDG_DATA_HOME = $(HOME)/.local/share
endif
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be great with a comment explaining in which cases this is necessary :)

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.

None yet

2 participants