X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/f8668c1ebead1163af81208f9d2e8d2c4d2a3cce..b4bc538452c92b6a2f9c935028461f5c774a4f1f:/icons/Makefile diff --git a/icons/Makefile b/icons/Makefile index ef55d498..1074303e 100644 --- a/icons/Makefile +++ b/icons/Makefile @@ -1,6 +1,6 @@ # Makefile for the PuTTY icon suite. -ICONS = putty puttycfg puttygen pscp pageant pterm ptermcfg +ICONS = putty puttycfg puttygen pscp pageant pterm ptermcfg puttyins SIZES = 16 32 48 MODE = # override to -it on command line for opaque testing @@ -9,7 +9,8 @@ PNGS = $(foreach I,$(ICONS),$(foreach S,$(SIZES),$(I)-$(S).png)) MONOPNGS = $(foreach I,$(ICONS),$(foreach S,$(SIZES),$(I)-$(S)-mono.png)) TRUEPNGS = $(foreach I,$(ICONS),$(foreach S,$(SIZES),$(I)-$(S)-true.png)) -ICOS = putty.ico puttygen.ico pscp.ico pageant.ico pageants.ico puttycfg.ico +ICOS = putty.ico puttygen.ico pscp.ico pageant.ico pageants.ico puttycfg.ico \ + puttyins.ico CICONS = xpmputty.c xpmpucfg.c xpmpterm.c xpmptcfg.c base: icos cicons @@ -23,6 +24,10 @@ truepngs: $(TRUEPNGS) icos: $(ICOS) cicons: $(CICONS) +install: icos cicons + cp $(ICOS) ../windows + cp $(CICONS) ../unix + $(PNGS): %.png: mkicon.py ./mkicon.py $(MODE) $(join $(subst -, ,$(basename $@)),_icon) $@ @@ -55,6 +60,22 @@ pscp.ico: pscp-16.png pscp-32.png pscp-48.png \ pscp-16-mono.png pscp-32-mono.png pscp-48-mono.png ./icon.pl -4 $(filter-out %-mono.png, $^) -1 $(filter %-mono.png, $^) > $@ +# Because the installer icon makes heavy use of brown when drawing +# the cardboard box, it's worth having 8-bit versions of it in +# addition to the 4- and 1-bit ones. +puttyins.ico: puttyins-16.png puttyins-32.png puttyins-48.png \ + puttyins-16-mono.png puttyins-32-mono.png \ + puttyins-48-mono.png \ + puttyins-16-true.png puttyins-32-true.png \ + puttyins-48-true.png + ./icon.pl -8 $(filter %-true.png, $^) \ + -4 $(filter-out %-true.png, $(filter-out %-mono.png, $^)) \ + -1 $(filter %-mono.png, $^) > $@ + +# Icon for the website. (This isn't linked into "make all".) +website.ico: putty-16.png + ./icon.pl -4 $^ >$@ + xpmputty.c: putty-16.png putty-32.png putty-48.png ./cicon.pl main_icon $^ > $@