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 22, 2021
1 parent 066349e commit b8e1826
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion icons/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ theme = hicolor
category = apps

icons = $(foreach size,$(sizes),$(size)x$(size)/$(category)/nix-snowflake.png) \
scalable/$(category)/nix-snowflake.svg
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 +24,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 b8e1826

Please sign in to comment.