JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Added a 48x48 version of the ship for use as an icon.
authorJoshua Grams <josh@qualdan.com>
Sat, 17 Feb 2007 02:56:40 +0000 (02:56 +0000)
committerJoshua Grams <josh@qualdan.com>
Sat, 17 Feb 2007 02:56:40 +0000 (02:56 +0000)
.gitignore
Makefile
gfx.mk

index 86ee58d..3f49269 100644 (file)
@@ -3,6 +3,7 @@ vor
 font_guts
 font_guts.pov
 data/rock*.png
+data/icon.png
 data/ship.png
 data/life.png
 data/font.png
index 8538a9f..3260367 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -39,7 +39,7 @@ rocks += 20 21 22 23 24 25 26 27 28 29
 rocks += 30 31 32 33 34 35 36 37 38 39
 rocks += 40 41 42 43 44 45 46 47 48 49
 rocks := $(rocks:%=data/rock%.png)
-graphics := data/ship.png data/life.png data/font.png $(rocks)
+graphics := data/ship.png data/icon.png data/life.png data/font.png $(rocks)
 
 INSTALL := install
 INSTALL_PROGRAM := $(INSTALL) -o games -g games
@@ -119,7 +119,7 @@ install-data: data
        $(INSTALL_DATA) ./data/*.wav $(DATA_PREFIX)/
        $(INSTALL_DATA) ./data/*.mod $(DATA_PREFIX)/
        @echo
-       @echo "We recommend using $(DATA_PREFIX)/ship.png as an icon."
+       @echo "$(DATA_PREFIX)/icon.png (48x48) or ship.png (32x32) make good icons."
        @echo
 
 uninstall: uninstall-program uninstall-data rminstalldirs
diff --git a/gfx.mk b/gfx.mk
index f0b3d1e..6ffccf6 100644 (file)
--- a/gfx.mk
+++ b/gfx.mk
@@ -1,6 +1,9 @@
 
 gfx-deps := gfx.mk povimg.sh
 
+data/icon.png: ship.pov $(gfx-deps)
+       ./povimg.sh +W48 +H48 $< > $@ || sh -c "rm $@; false"
+
 data/ship.png: ship.pov $(gfx-deps)
        ./povimg.sh +W32 +H32 $< > $@ || sh -c "rm $@; false"