--- ksame/Makefile.in.orig	Tue Aug 24 23:06:10 1999
+++ ksame/Makefile.in	Tue Aug 31 22:22:51 1999
@@ -172,7 +172,7 @@
 
 kde_icon_DATA = ksame.xpm
 
-pics_DATA = stones.gif stones_mask.gif
+pics_DATA = stones.xpm stones_mask.xpm
 apps_DATA = ksame.kdelnk
 
 SUBDIRS = docs
@@ -211,7 +211,7 @@
 
 all: all-redirect
 .SUFFIXES:
-.SUFFIXES: .S .c .cpp .lo .o .s
+.SUFFIXES: .S .c .cpp .gif .lo .o .s .xpm
 $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 
 	cd $(top_srcdir) && $(AUTOMAKE) --foreign --include-deps ksame/Makefile
 	cd $(top_srcdir) && perl admin/automoc ksame/Makefile.in
@@ -563,6 +563,9 @@
 
 messages:
 	$(XGETTEXT) -C -ktranslate -ki18n -x $(includedir)/kde.pot $(ksame_SOURCES) && mv messages.po ../po/ksame.pot
+
+.gif.xpm:
+	$(LOCALBASE)/bin/convert $< $@
 
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
 # Otherwise a system limit (for SysV at least) may be exceeded.
