Skip to content

Commit

Permalink
icons: install white nixos logo
Browse files Browse the repository at this point in the history
  • Loading branch information
worldofpeace committed Feb 24, 2021
1 parent 066349e commit c2cf010
Showing 1 changed file with 13 additions and 2 deletions.
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

0 comments on commit c2cf010

Please sign in to comment.