# Makefile for Puzzles icons.
-PUZZLES = blackbox bridges cube dominosa fifteen flip guess inertia lightup \
- loopy map mines net netslide pattern pegs rect samegame sixteen \
- slant solo tents twiddle unequal untangle
+PUZZLES = blackbox bridges cube dominosa fifteen filling flip galaxies guess \
+ inertia lightup loopy map mines net netslide pattern pegs rect \
+ samegame sixteen slant solo tents twiddle unequal untangle
BASE = $(patsubst %,%-base.png,$(PUZZLES))
WEB = $(patsubst %,%-web.png,$(PUZZLES))
bridges-ibase.png : override CROP=264x264 107x107+157+157
dominosa-ibase.png : override CROP=304x272 152x152+152+0
fifteen-ibase.png : override CROP=240x240 120x120+0+120
+filling-ibase.png : override CROP=256x256 131x131+15+79
flip-ibase.png : override CROP=288x288 145x145+120+72
+galaxies-ibase.png : override CROP=288x288 165x165+0+0
guess-ibase.png : override CROP=263x420 178x178+75+17
inertia-ibase.png : override CROP=321x321 128x128+193+0
lightup-ibase.png : override CROP=256x256 112x112+144+0
# that on most modern Windows machines this won't matter too
# much...)
$(P48D4): %-48d4.png: %-ibase4.png
- $(PIC)square.pl 48 1 $^ tmp2.png
- convert -colors 16 -map $(PIC)win16pal.xpm tmp2.png $@
- rm -f tmp.png tmp2.png
+ $(PIC)square.pl 48 1 $^ $@-tmp2.png
+ convert -colors 16 -map $(PIC)win16pal.xpm $@-tmp2.png $@
+ rm -f $@-tmp2.png
$(P32D4): %-32d4.png: %-ibase.png
- $(PIC)square.pl 32 1 $^ tmp2.png
- convert -colors 16 -map $(PIC)win16pal.xpm tmp2.png $@
- rm -f tmp.png tmp2.png
+ $(PIC)square.pl 32 1 $^ $@-tmp2.png
+ convert -colors 16 -map $(PIC)win16pal.xpm $@-tmp2.png $@
+ rm -f $@-tmp2.png
$(P16D4): %-16d4.png: %-ibase.png
- $(PIC)square.pl 16 1 $^ tmp2.png
- convert -colors 16 -map $(PIC)win16pal.xpm tmp2.png $@
- rm -f tmp.png tmp2.png
+ $(PIC)square.pl 16 1 $^ $@-tmp2.png
+ convert -colors 16 -map $(PIC)win16pal.xpm $@-tmp2.png $@
+ rm -f $@-tmp2.png
# Build the actual Windows icons themselves, by feeding all those
# PNGs to my icon builder script.