diff options
| author | Simon Tatham <anakin@pobox.com> | 2006-12-26 16:47:28 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2006-12-26 16:47:28 +0000 |
| commit | d55ad9fc42ab1f1d38dcf6ef02fe9254e6839165 (patch) | |
| tree | 3b06ffca17a9c7b2294cbabf90cc8a22d948dc63 /icons/Makefile | |
| parent | ff7d2559eee80771700cfd935d8775e204d62f36 (diff) | |
| download | puzzles-d55ad9fc42ab1f1d38dcf6ef02fe9254e6839165.zip puzzles-d55ad9fc42ab1f1d38dcf6ef02fe9254e6839165.tar.gz puzzles-d55ad9fc42ab1f1d38dcf6ef02fe9254e6839165.tar.bz2 puzzles-d55ad9fc42ab1f1d38dcf6ef02fe9254e6839165.tar.xz | |
New mechanism for automatic generation of the puzzle screenshots on
the web, which I hope will also end up being extended to generate
both Windows and X icons for each individual puzzle. The mechanism
is: for each puzzle there's a save file in the `icons' subdirectory
showing a game state which I think is a decent illustration of the
puzzle, and then there's a nasty set of scripts which runs each
puzzle binary, loads that save file, grabs a screenshot using xwd,
and munges it into shape.
In order to support this I've added two new options (--redo and
--windowid) to all the GTK puzzles, which I don't expect ever to be
used outside the icons makefile. I've also added two more options
(--load and --id) which force a GTK puzzle to treat its command-line
option as a save file or as a game ID respectively (the previous
behaviour was always to guess, and sometimes it guessed wrong).
[originally from svn r7014]
Diffstat (limited to 'icons/Makefile')
| -rw-r--r-- | icons/Makefile | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/icons/Makefile b/icons/Makefile new file mode 100644 index 0000000..114de63 --- /dev/null +++ b/icons/Makefile @@ -0,0 +1,29 @@ +# 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 untangle + +BASEPNGS = $(patsubst %,%-base.png,$(PUZZLES)) +WEBPNGS = $(patsubst %,%-web.png,$(PUZZLES)) + +BIN = ../ +PIC = ./ + +base: $(BASEPNGS) +webpics: $(WEBPNGS) + +fifteen.png : override REDO=0.3 +flip.png : override REDO=0.3 +netslide.png : override REDO=0.3 +sixteen.png : override REDO=0.3 +twiddle.png : override REDO=0.3 + +$(BASEPNGS): %-base.png: $(BIN)% $(PIC)%.sav $(PIC)screenshot.sh + $(PIC)screenshot.sh $(BIN)$* $(PIC)$*.sav $@ $(REDO) + +$(WEBPNGS): %-web.png: %-base.png + $(PIC)square.pl 150 5 $^ $@ + +clean: + rm -f *.png |