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

icons: install white nixos logo #59

Merged
merged 1 commit into from
Feb 24, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions icons/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@ sizes = 16 24 32 48 64 72 96 128 256 512 1024
theme = hicolor
category = apps

icons = $(foreach size,$(sizes),$(size)x$(size)/$(category)/nix-snowflake.png) \
scalable/$(category)/nix-snowflake.svg
icons = \
$(foreach size,$(sizes),$(size)x$(size)/$(category)/nix-snowflake.png) \
scalable/$(category)/nix-snowflake.svg \
$(foreach size,$(sizes),$(size)x$(size)/$(category)/nix-snowflake-white.png) \
scalable/$(category)/nix-snowflake-white.svg

install_dest = $(DESTDIR)$(prefix)/share/icons/$(theme)

Expand All @@ -22,6 +25,14 @@ scalable/$(category)/nix-snowflake.svg: ../logo/nix-snowflake.svg
@mkdir -p $(@D)
cp $< $@

%/$(category)/nix-snowflake-white.png: ../logo/white.svg
@mkdir -p $(@D)
convert -background none -resize $* $< $@

scalable/$(category)/nix-snowflake-white.svg: ../logo/white.svg
@mkdir -p $(@D)
cp $< $@

$(install_dest)/%: %
install -D $< $@

Expand Down