2007-01-06 21:15:35 +03:00
|
|
|
# Makefile for the PuTTY icon suite.
|
|
|
|
|
2007-02-07 01:39:15 +03:00
|
|
|
ICONS = putty puttycfg puttygen pscp pageant pterm ptermcfg puttyins
|
2015-09-06 11:50:09 +03:00
|
|
|
SIZES = 16 32 48 128
|
2007-01-06 21:15:35 +03:00
|
|
|
|
|
|
|
MODE = # override to -it on command line for opaque testing
|
|
|
|
|
2016-03-23 09:41:27 +03:00
|
|
|
PAMS = $(foreach I,$(ICONS),$(foreach S,$(SIZES),$(I)-$(S).pam))
|
|
|
|
MONOPAMS = $(foreach I,$(ICONS),$(foreach S,$(SIZES),$(I)-$(S)-mono.pam))
|
|
|
|
TRUEPAMS = $(foreach I,$(ICONS),$(foreach S,$(SIZES),$(I)-$(S)-true.pam))
|
|
|
|
|
|
|
|
PNGS = $(patsubst %.pam,%.png,$(PAMS))
|
|
|
|
MONOPNGS = $(patsubst %.pam,%.png,$(MONOPAMS))
|
|
|
|
TRUEPNGS = $(patsubst %.pam,%.png,$(TRUEPAMS))
|
2007-01-06 21:15:35 +03:00
|
|
|
|
2007-01-22 21:02:06 +03:00
|
|
|
ICOS = putty.ico puttygen.ico pscp.ico pageant.ico pageants.ico puttycfg.ico \
|
2007-02-07 01:39:15 +03:00
|
|
|
puttyins.ico
|
2016-03-24 01:02:46 +03:00
|
|
|
ICNS = PuTTY.icns Pterm.icns
|
2007-01-06 21:15:35 +03:00
|
|
|
CICONS = xpmputty.c xpmpucfg.c xpmpterm.c xpmptcfg.c
|
|
|
|
|
|
|
|
base: icos cicons
|
|
|
|
|
2015-09-06 11:50:09 +03:00
|
|
|
all: pngs monopngs base icns # truepngs currently disabled by default
|
2007-01-06 21:15:35 +03:00
|
|
|
|
|
|
|
pngs: $(PNGS)
|
|
|
|
monopngs: $(MONOPNGS)
|
|
|
|
truepngs: $(TRUEPNGS)
|
|
|
|
|
|
|
|
icos: $(ICOS)
|
2015-09-06 11:50:09 +03:00
|
|
|
icns: $(ICNS)
|
2007-01-06 21:15:35 +03:00
|
|
|
cicons: $(CICONS)
|
|
|
|
|
2007-01-07 13:17:12 +03:00
|
|
|
install: icos cicons
|
|
|
|
cp $(ICOS) ../windows
|
|
|
|
cp $(CICONS) ../unix
|
|
|
|
|
2016-03-23 09:41:27 +03:00
|
|
|
$(PAMS): %.pam: mkicon.py
|
2007-01-06 21:15:35 +03:00
|
|
|
./mkicon.py $(MODE) $(join $(subst -, ,$(basename $@)),_icon) $@
|
|
|
|
|
2016-03-23 09:41:27 +03:00
|
|
|
$(PNGS) $(MONOPNGS) $(TRUEPNGS): %.png: %.pam
|
|
|
|
convert $< $@
|
|
|
|
|
|
|
|
$(MONOPAMS): %.pam: mkicon.py
|
2007-01-06 21:15:35 +03:00
|
|
|
./mkicon.py -2 $(MODE) $(join $(subst -, ,$(subst -mono,,$(basename $@))),_icon) $@
|
|
|
|
|
2016-03-23 09:41:27 +03:00
|
|
|
$(TRUEPAMS): %.pam: mkicon.py
|
2007-01-06 21:15:35 +03:00
|
|
|
./mkicon.py -T $(MODE) $(join $(subst -, ,$(subst -true,,$(basename $@))),_icon) $@
|
|
|
|
|
|
|
|
putty.ico: putty-16.png putty-32.png putty-48.png \
|
|
|
|
putty-16-mono.png putty-32-mono.png putty-48-mono.png
|
|
|
|
./icon.pl -4 $(filter-out %-mono.png, $^) -1 $(filter %-mono.png, $^) > $@
|
|
|
|
|
|
|
|
puttycfg.ico: puttycfg-16.png puttycfg-32.png puttycfg-48.png \
|
|
|
|
puttycfg-16-mono.png puttycfg-32-mono.png puttycfg-48-mono.png
|
|
|
|
./icon.pl -4 $(filter-out %-mono.png, $^) -1 $(filter %-mono.png, $^) > $@
|
|
|
|
|
|
|
|
puttygen.ico: puttygen-16.png puttygen-32.png puttygen-48.png \
|
|
|
|
puttygen-16-mono.png puttygen-32-mono.png puttygen-48-mono.png
|
|
|
|
./icon.pl -4 $(filter-out %-mono.png, $^) -1 $(filter %-mono.png, $^) > $@
|
|
|
|
|
|
|
|
pageant.ico: pageant-16.png pageant-32.png pageant-48.png \
|
|
|
|
pageant-16-mono.png pageant-32-mono.png pageant-48-mono.png
|
|
|
|
./icon.pl -4 $(filter-out %-mono.png, $^) -1 $(filter %-mono.png, $^) > $@
|
|
|
|
|
|
|
|
pageants.ico: pageant-16.png pageant-16-mono.png
|
|
|
|
./icon.pl -4 $(filter-out %-mono.png, $^) -1 $(filter %-mono.png, $^) > $@
|
|
|
|
|
|
|
|
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, $^) > $@
|
|
|
|
|
2007-01-22 21:02:06 +03:00
|
|
|
# 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.
|
2007-02-07 01:39:15 +03:00
|
|
|
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
|
2007-01-22 21:02:06 +03:00
|
|
|
./icon.pl -8 $(filter %-true.png, $^) \
|
|
|
|
-4 $(filter-out %-true.png, $(filter-out %-mono.png, $^)) \
|
|
|
|
-1 $(filter %-mono.png, $^) > $@
|
|
|
|
|
2007-01-25 03:14:01 +03:00
|
|
|
# Icon for the website. (This isn't linked into "make all".)
|
|
|
|
website.ico: putty-16.png
|
|
|
|
./icon.pl -4 $^ >$@
|
|
|
|
|
2007-01-06 21:15:35 +03:00
|
|
|
xpmputty.c: putty-16.png putty-32.png putty-48.png
|
|
|
|
./cicon.pl main_icon $^ > $@
|
|
|
|
|
|
|
|
xpmpucfg.c: puttycfg-16.png puttycfg-32.png puttycfg-48.png
|
|
|
|
./cicon.pl cfg_icon $^ > $@
|
|
|
|
|
|
|
|
xpmpterm.c: pterm-16.png pterm-32.png pterm-48.png
|
|
|
|
./cicon.pl main_icon $^ > $@
|
|
|
|
|
|
|
|
xpmptcfg.c: ptermcfg-16.png ptermcfg-32.png ptermcfg-48.png
|
|
|
|
./cicon.pl cfg_icon $^ > $@
|
|
|
|
|
2016-03-23 09:41:27 +03:00
|
|
|
PuTTY.icns: putty-16-mono.pam putty-16.pam \
|
|
|
|
putty-32-mono.pam putty-32.pam \
|
|
|
|
putty-48-mono.pam putty-48.pam \
|
|
|
|
putty-128.pam
|
|
|
|
./macicon.py mono:putty-16-mono.pam colour:putty-16.pam \
|
|
|
|
mono:putty-32-mono.pam colour:putty-32.pam \
|
|
|
|
mono:putty-48-mono.pam colour:putty-48.pam \
|
|
|
|
colour:putty-128.pam \
|
2015-09-06 11:50:09 +03:00
|
|
|
output:$@
|
|
|
|
|
2016-03-24 01:02:46 +03:00
|
|
|
Pterm.icns: pterm-16-mono.pam pterm-16.pam \
|
|
|
|
pterm-32-mono.pam pterm-32.pam \
|
|
|
|
pterm-48-mono.pam pterm-48.pam \
|
|
|
|
pterm-128.pam
|
|
|
|
./macicon.py mono:pterm-16-mono.pam colour:pterm-16.pam \
|
|
|
|
mono:pterm-32-mono.pam colour:pterm-32.pam \
|
|
|
|
mono:pterm-48-mono.pam colour:pterm-48.pam \
|
|
|
|
colour:pterm-128.pam \
|
|
|
|
output:$@
|
|
|
|
|
2007-01-06 21:15:35 +03:00
|
|
|
clean:
|
2016-03-23 09:41:27 +03:00
|
|
|
rm -f *.pam *.png *.ico *.icns *.c
|