Support configurable install location and bare make by silasdavis · Pull Request #871 · material-shell/material-shell · GitHub
Skip to content

Support configurable install location and bare make#871

Open
silasdavis wants to merge 1 commit into
material-shell:mainfrom
silasdavis:nixos
Open

Support configurable install location and bare make#871
silasdavis wants to merge 1 commit into
material-shell:mainfrom
silasdavis:nixos

Conversation

@silasdavis

Copy link
Copy Markdown

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>

@HalfVoxel HalfVoxel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice!

Comment thread Makefile

Copy link
Copy Markdown
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.

2 participants